Rich editor fails to convert "_" character to seam text
-------------------------------------------------------
Key: RF-7347
URL:
https://jira.jboss.org/jira/browse/RF-7347
Project: RichFaces
Issue Type: Bug
Components: component-input
Affects Versions: 3.3.1
Environment: Testing on: Linux kernel 2.6.28-11 Ubuntu i686 GNU/Linux - Web
browsers: Firefox 3.0.10, Opera beta 10, Konqueror 4.2.2
But this issue should appear on any enviroment
Reporter: David Herrera Alonso
When useSeamText option is enabled, rich editor component do nothing to convert
"_" character to seam text format. And when s:formattedText goes to interpret
rich editor output, it fails because it finds underline begin special character
"_", but doesn't find underline end special character (another
"_").
With other special characters like "*", "|", "^",
"\", rich editor convert there to "\*", "\|",
"\^", "\\". But with "_" doesn't convert it and remains
"_".
This issue happens too in richfaces demo (on rich editor section) and is easy to test.
Simply activate "Use seam text" (and "Toggle preview" to see
conversion of "*" and others) and type "_" character. Let rich editor
convert text and see the error result.
The solution is easy, simply add "_" character to conversion rules and put
"\" before it. Because s:formattedText works well with "\_" and
don't interpret it like underline character.
At last, sorry for my poor english expression. I am not manage these language 100%. Sorry.
But I hope description would be enough to understand the problem. Thank you.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira