Unexpected caret move in rich:editor with IE8 + MS IME
------------------------------------------------------
Key: RF-11457
URL:
https://issues.jboss.org/browse/RF-11457
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Environment: Windows7/XP
IE8
MS IME(Japanese)
Reporter: Toshiya Kobayashi
You can reproduce it with
http://livedemo.exadel.com/richfaces-demo/richfaces/editor.jsf
I just reproduced with Japanese IME, not sure how other languages work.
- Toggle MS IME on
- Enter "ほんぶん"
- Press SPACE key to change it to "本文"
-- Then the caret moves to the line head. Weird.
- Enter "です"
- "本文" disappears and only "です" remains.
The issue is reproducible only when you write something for the first time to the empty
text area. After that, the issue wouldn't happen.
I'm not sure the details of how TinyMCE handles IME keyDown events but the root cause
seems to me that TinyMCE doesn't generate <p> tag in the empty text area for IE8
while it does for FireFox and Chrome.
A workaround is populating "<p/>" as the initial value for the
rich:editor.
Example)
xhtml:
{code}
<rich:editor id="editor" width="400" height="300"
viewMode="visual" value="#{editorBean.value}"
></rich:editor>
{code}
EditorBean:
{code}
private String value = "<p/>";
{code}
This is reproducible with pure TinyMCE 3.2 and the latest 3.4.6 still have a similar issue
(The Behaviour is a bit different but <p> is not generated for IE8 yet).
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira