Opened 14 years ago
Closed 14 years ago
#2333 closed defect (duplicate)
Editor2 htmlEditing toggle problem - IE6 on PC.
Reported by: | jujhimup | Owned by: | liucougar |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | Editor | Version: | 0.4.1 |
Keywords: | editor, editor2, htmlediting | Cc: | |
Blocked By: | Blocking: |
Description
when toggling between html source editing and normal/wyswiwyg editing using editor2 n IE 6, each click of the toggle button seems to create an extra tag around the whole content.
for example, go to here in IE 6: http://dojotoolkit.org/~liucougar/dojo/src/widget/templates/Editor2/test_EditorToolbarFullFeature.html
then do this:
- type in some text.<br />
- highlight it, and select 'main heading' from the 'format' dropdown.<br />
- now click on the '<html>' button to toggle to HTML source editing.<br />
- youll notice that there should be '<h1>your text entered</h1>'.<br />
- toggle back to normal editing.<br />
- toggle back to HTML source again.<br />
- this time - there is an extra <h1> tag wrapped around the whole of the content.<br />
- if you toggle again, there will be another <h1> tag wrapped around everything.<br />
- each time you toggle, another tag will be added ... so if you toggle 50 times, there will be 50 wrapping <h1> tags.<br />
needless to say, in firefox this works fine - so it is just an IE problem (isnt it always ... :D)
NOTE REGARDING VERSION: im not sure what version the above link is using - but i have 0.3 installed on one of my sites that also has this problem, so i guess it exists throughout all versions.
regards jujhimup
dup of #2073