PDA

View Full Version : [UNKNOWN][3.1] html editor problem



wp.joju
17 Dec 2009, 11:40 PM
this is a bug we found using the coolite html editor but i think also still exists in the extjs html editor... i used the html form in this page to check for the problem
http://www.extjs.com/deploy/ext/examples/form/dynamic.html
http://www.extjs.com/deploy/dev/examples/form/dynamic.html

steps to reproduce


write any random text in the html editor (preferably around 10 words)
highlight the beginning portion of the text you've written using any color
highlight the end portion of the text you've written using any color
change the text color of text in between the portions which you've highlighted in steps 2 and 3
select all text using ctrl-A then click on the underline button
switch to source code view then switch back to html view
select all text using ctrl-A (notice that the underline button is disabled even if all text were underlined on step 5)

notice that since all text were underlined during step 5, when selecting all again you should be able to remove the underline but you cannot using the following steps.

tested using
browser: firefox 3.5.6 and 3.5.5
OS: winXP

wp.joju
17 Dec 2009, 11:53 PM
error: if the following text is written in the source view mode, after switching to html view then selecting all, the underline button is disable


<u><font color="#99cc00">dasd</font><br></u>no error: if the following text is written in the source view mode, after switching to html view then selecting all, the underline button is enable


<u><span color="#99cc00">dasd</span><br></u>

so for now the only workaround i did was to change all font tags to span tags