Heading 1 is applied to all pasted text

Last post 10-19-2012, 7:17 AM by Kenneth. 3 replies.
Sort Posts: Previous Next
  •  06-17-2012, 10:29 PM 73918

    Heading 1 is applied to all pasted text

     

    Hello,
     
    I have an issue that is also reproducible in the demo @ http://cutesoft.net/example/general.aspx
     
    1. Paste this into the text editor in 'Normal' mode:
     
    Header 1
    Text
    Header 2
    Text
     
    2. In HTML mode, it should look like this:
    Header 1<br />
    Text<br />
    Header 2<br />
    Text <br />

    3.  Place the cursor on the first line. Press Heading 1.
    4.  All 4 lines will be changed to <h1>.
    5.  Undo changes in (1) & (3), now highlight the first line (Header).
    6.  Press Heading 1. All 4 lines will be changed to <h1>.
     
    I noticed that this behaviour doesn't happen if the text is typed in (rather than pasted). The HTML for the typed in content vs the pasted content differs; the typed in lines are separated by <div> tags,  whereas the pasted content is separated by <br> tags.
     
    Note: This does not happen on Firefox & Chrome. I've reproduced the issue with IE8.
     
    Thanks in advance for looking into this!

  •  06-18-2012, 3:33 AM 73921 in reply to 73918

    Re: Heading 1 is applied to all pasted text

    Hi FeliciaExact,
     
    The <br> tag is a special HTML element, not a Block-level element like <div>, <p>
     
    Like other editors, Cute Editor implements the IE MSHTML Editing Platform.
     
    Actual, the ie behavior is correct. Because the content in the same paragraph, so they will achieve the same paragraph setting.
     
    We will improve it in the new version, make all browsers has the same behavior as IE. Sorry for your inconvenience.
     
    Regards,
     
    Ken 
  •  10-19-2012, 12:37 AM 75025 in reply to 73921

    Re: Heading 1 is applied to all pasted text

    it is this issue already implemented on latest release\version?
    beheer
  •  10-19-2012, 7:17 AM 75031 in reply to 75025

    Re: Heading 1 is applied to all pasted text

    HI UserBeheer,

     

    In the latest version, all browsers will has the same behavior now.

     

    You can test the latest version at http://richtexteditor.com/demo/

     

    Regards,

     

    Ken 

View as RSS news feed in XML