Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

contenteditable within binding possible?

0 views
Skip to first unread message

Thomas Weiser

unread,
Jul 26, 2009, 8:33:56 AM7/26/09
to dev-te...@lists.mozilla.org
Hello,

I am using my own XBL bindings within XHTML for an editor-like application.

A subtree of the document should be contenteditable (including
XBL-generated content). This works fine as long as the element marked as
contenteditable is an explicit (non-anonymous) element.

Now I would like to start the contenteditable tree in a binding, i.e.
the root of the editable sutree should be an anonymous div element. This
does not seem to work.

Please see example code at http://pastebin.mozilla.org/664560

There a three lines shown by the example (tested with Firefox 3.5.1):
Line 1 should be editable. It is editable but without showing caret.
Line 2 I would like to be editable. But it is not.
Line 3 is only for reference.

Is there any way to do something like this?

Thanks!
Thomas Weiser


0 new messages