Heading 1 applies to all pasted text

Last post 09-02-2011, 7:47 AM by Kenneth. 1 replies.
Sort Posts: Previous Next
  •  09-02-2011, 1:16 AM 69915

    Heading 1 applies to all pasted text

    Hello again,
     
    I've another issue that's also reproducible in the demo @ http://cutesoft.net/example/general.aspx
     
    1) Paste this into the text editor in 'Normal' mode:
     
    Header
    Text
    Text
    Text
     
    2) Place the cursor on the first line. Press Heading 1.
    3) All 4 lines will be changed to <h1>.
    4) Undo changes in (2) & (3), now highlight the first line (Header).
    5) Press Heading 1. All 4 lines will be changed to <h1>.
     
    I also 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 placed within a <div>.
     
    Thanks!
  •  09-02-2011, 7:47 AM 69918 in reply to 69915

    Re: Heading 1 applies to all pasted text

    Hi jonathanexact,
     
    It works fine for me. I tested on IE/firefox/chrome
     
    1. I paste your code into editor normal view,  it shows as below in html view.
     
    <div>Header</div>
    <div>Text</div>
    <div>Text</div>
    <div>Text</div>
     
    2. Then Place cursor on first line and select <h1>, the code change to 
     
    <h1>Header</h1>
    <div>Text</div>
    <div>Text</div>
    <div>Text</div>
     
    All browsers gives me the same behavior
     
    Regards,
     
    Ken
View as RSS news feed in XML