Changes between Initial Version and Version 1 of Ticket #6161


Ignore:
Timestamp:
Mar 11, 2008, 11:11:12 PM (12 years ago)
Author:
bill
Comment:

I assume step #4 you need to do a copy?

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #6161 – Description

    initial v1  
    11I have run into a difficult issue with the Editor control in IE7 and dojo 1.0.2. A simple copy/paste operation causes the Editor.getValue() to be invalid HTML. To reproduce the error:
    2 1) Start with an empty Editor control.
    3 2) Type a, hit enter, type b, hit enter.
    4 3) Highlight the a and make it bold (or any other markup).
    5 4) Highlight the enter line the b is on (so you get the newline).
    6 5) Paste next to the a.
     2
     3 1. Start with an empty Editor control.
     4 2. Type a, hit enter, type b, hit enter.
     5 3. Highlight the a and make it bold (or any other markup).
     6 4. Highlight the enter line the b is on (so you get the newline).
     7 5. Paste next to the a.
    78
    89The result is arguably incorrect as you now have a bold a, bold b and regular b (each on their own line) when one would expect two regular b's. The exact spacing (two lines, three lines, etc) is debatable and completely irrelevant. The real problem, however, is the markup that is returned from getValue() is invalid. It is as follows:
    9 
     10{{{
    1011< p >< strong >a< p >b< /p >< /strong >< /p >< p >b< /p >< p >b< /p >
    11 
     12}}}
    1213If you put it back into the control (ie if the markup is saved like this), it will get progressively worse each time as more and more b's are added. Any help in resolving this issue would be greatly appreciated.
    1314