Marius Dumitru Florea wrote:
Hi devs,
Let's consider the following scenario:
* Edit a new page with the new WYSIWYG editor.
* Type a word like "ubuntu".
* Move the caret inside the word like "ubu|ntu".
* Press the Bold button or type CTRL+B.
Question: What is the expected behavior?
a) Apply the inline style (bold) only to the insertion point. The next
letters typed will have this style applied.
b) Apply the inline style (bold) to the word that contains the insertion
point ("ubuntu").
Note: b) is the current behavior in Open Office and IE. FF behaves as in
a). The behavior currently implemented in the new WYSIWYG editor is a).
Also, by choosing b) I avoid the use of the special space character in
IE (see my previous mail), but I have to re-implement the current
behavior of the new WYSIWYG. I need around 2 days for it. Of course, it
will work for any inline style like bold, italic etc.
If this is the solution to not using the special hacky character, and compared
to that solution, I'm a dancing
+1 for b)
We might as well leave it act like it does on FF and otherwise on IE. It's not
that big of a deal, I feel, since it addresses a very niche usecase: a user
tries to start typing bold inside a word. Also, it will cause troubles only if a
user switches between browsers currently ('cause otherwise he just gets used
with the behaviour in his loved browser and lives with it).
Happy coding,
Anca
I'm +1 for b)
Thanks,
Marius.
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs