Automatic insertion of <div> tag around pasted text

Last post 03-03-2011, 4:42 PM by A-Damage. 5 replies.
Sort Posts: Previous Next
  •  02-25-2011, 2:41 PM 66456

    Automatic insertion of <div> tag around pasted text

    I tried searching through the forum posts, and the closest thread I could find was this: http://cutesoft.net/forums/thread/53316.aspx

    But, it didn't answer the question of why text pasted in a blank editor will get surrounded by div tags. We just updated to the newest version of the editor, and in the older version, the text was inserted without any tags surrounding the text—no div, p, or any other type of HTML tags. Remember, this is before any formatting of text is applied, and before pressing the enter key for any breaks in content.

    If multiple paragraphs were copied from Notepad, the editor used to paste the text with only line breaks (<br />) for separators, and the entire block of text had no tags at all surrounding it. Now, the editor automatically throws div tags around the text, which we absolutely cannot have.

    Is there a way to change the settings so that it works how it use to, without throwing any tags around the pasted in text?

    Filed under: , ,
  •  02-25-2011, 2:44 PM 66457 in reply to 66456

    Re: Automatic insertion of <div> tag around pasted text

    Oh, and I am using Firefox 3.6.13.
  •  02-28-2011, 9:04 AM 66473 in reply to 66457

    Re: Automatic insertion of <div> tag around pasted text

    Dear A-Damage,
     
    Please try the following setting and test it again:
    <CE:Editor id="Editor1" BreakElement=Br  runat="server" ></CE:Editor><br />
    Hope it helps.
    Keep me posted.
     
    Thank you for asking
    Eric@cutesoft.net       
  •  03-01-2011, 10:07 AM 66493 in reply to 66473

    Re: Automatic insertion of <div> tag around pasted text

    Eric:

    I spoke with our programmer, and he said we already have the "BreakElement" property set as "P". So, we're confused why it's even throwing div tags—shouldn't it be setting paragraph tags?

  •  03-01-2011, 9:20 PM 66501 in reply to 66493

    Re: Automatic insertion of <div> tag around pasted text

    Hi A-Damage,
     
    Can you reproduce this issue in the following example?
     
     
    If not, please download the latest version.
     
    I tested this example using Firefox 3.6.13 and I didn't find any problems.
     
     
     
  •  03-03-2011, 4:42 PM 66535 in reply to 66501

    Re: Automatic insertion of <div> tag around pasted text

    Yes, it occurred it that example page, as well. These are the steps I am taking:

    1. Copy a line of text from anywhere. 
    2. Paste it into Notepad.
    3. Copy the line out of Notepad.
    4. Place your cursor in the editor, and then Paste in the copied text (CTRL + V).

    After going through these steps, when selecting the "HTML" view from the bottom of the editor, the text is surrounded by div tags.

    I recently updated to 3.6.14, and the issue is still occurring.

View as RSS news feed in XML