Hello,
I'm developping a wysiwyg xml editor, based on gecko, Etna
(http://rhaptos.org/downloads/editing/etna/, glazou has presented it at
xtech 2006).
Gecko has some issues with editing. Htmleditor solve them by managing a
<br> tag. In my xmleditor, i solved (temporarily) some of them too by
managing a "special" character (i put a "grey" character), but I don't
like to do this management because for me this is a "dirty" hack, it
complexify the source code (both the editor and my validator), and it's
a potential source of bugs (if you read bugs about htmleditor in
bugzilla, you know what i mean ;-) ).
Here are this issues :
- it's impossible to put the caret inside an empty element, even if it
has a size (with a width and/or height css property for example)
- spaces at the end of a content are ignored by the layout : if you have
the caret at this end of this content, and you have spaces between the
last letter and the caret, you don't "see" this space (so the caret
don't move when user type a space in this case). I think the layout
should take care about it when a content is in editing mode
(automatically or by a css property like -moz-ended-whitespace:visible;
or else ?)
- Bug 98997 – matching of :empty not dynamically updated. This is a
minor problem : we can't style empty elements to highlight them. If we
can, the user could see where he can type new content.
What do you think about them ? Do you know if this issues can be solved
easily with the new layout engine ? Are there already bugs about them in
bugzilla (i didn't find them) and what are their number ?
If this three issues are solved, i could simplify source code in my xml
editor, but i will also suggest patches on the text/htmleditor to remove
all this complex management ;-)
regards
Laurent Jouanneau
_______________________________________________
dev-tech-layout mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-layout