.
2) dijit._editor.RichText plugins EnterKeyHandling has a variable blockNodeForEnter
3) IE doesn't like
very much, it has problem navigate the cursor using up/down arrow
4) when does it generate
when ENTER key is hit
-- if editor has no preexisting data, ENTER key will generate
, which cause problem in IE browser because
of the default css style for
has margin. For this to work, add " " as content to the editor, then
ENTER key will generate
.
5) setValue(" ") will generate a
tag, do setValue("
")
6) TAB key tab to the editor but no cursor
-- set the iframe.body to have tabIndex = -1
-- alternatively, by having "
", tab will work as well
-- Again, if no data in the editor, TAB tabs to the editor but no cursor. For this to work, add " ".
7) add Link, smiley or open other pull down menu will go to the end of the html tag
Example:
To see this problem, compose with Signature has predefined
cursor
--
before the signature. If position the cursor at the beginning of the first
, then add smiley, link or
open other pull down menu reposition the cursor moves to the end of the second
.
smiley --
instead of
smiley
--
This is because in IE, the var bm = range.getBookmark() and range.moveToBookmark(bm) do not work correctly, the
moveToBookmark(bm) seems to move to the end of the html tag, i.e., 2nd
in this case until a text character is
encountered. To work around this problem, keep the range when focus is blur and then use the saved range.select()
to reselect the selection.
-- this problem also got migitated by adding "
", only if the cursor does not position after the