Disable automatic paragraph tag insertion?

Last post 10-01-2010, 3:22 PM by JPenn. 4 replies.
Sort Posts: Previous Next
  •  09-30-2010, 9:26 AM 64264

    Disable automatic paragraph tag insertion?

    When I use CuteEditor 6.6 in IE8, it wraps the text I enter with paragraph tags.  I've searched the forums here and apparently this is a known issue, but is there a workaround I can use to prevent the tags from being inserted?  Thanks!
  •  09-30-2010, 11:52 AM 64266 in reply to 64264

    Re: Disable automatic paragraph tag insertion?

    Dear Jpenn,
     
    Please refer to http://cutesoft.net/example/oncarriagereturn.aspx , you can find its source code in download package. If this is not what you need, please give us an example and describe this issue.
     
    Thank you for asking
  •  09-30-2010, 12:07 PM 64267 in reply to 64266

    Re: Disable automatic paragraph tag insertion?

    Thanks Eric.  I've already tried the BreakElement property but that hasn't helped.  If I understand the documentation, that property is used to determine which tags to insert when Enter is pressed.  In my case, I haven't pressed Enter yet, I'm just typing text.
     
    On your example page, I selected "Br" mode and typed the word "TEST" into the Normal view.  When I selected HTML view, I saw this:
     
     <p>TEST</p>
     
    And it only happens in IE.  That's what I'm trying to stop from happening -- the insertion of the <p> tags.
     
     
     
     
     
     
  •  09-30-2010, 1:52 PM 64272 in reply to 64267

    Re: Disable automatic paragraph tag insertion?

    JPenn,
     
    It's a behavior of IE.

    When you start editing, <P> or <div> tags will be inserted automatically by IE. The content is wrapped in the block level element.
    If you don't want the <p> tags in your applications, you can create your own html filter to remove tags.
     
    Creates your own HTML Filter
     
    Hope it helps.
     
    Keep me posted

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  10-01-2010, 3:22 PM 64302 in reply to 64272

    Re: Disable automatic paragraph tag insertion?

    Thanks for the timely responses.  Unfortunately I cannot strip all <p> tags from the html as others may be legitimately entered by our end users.  I will have to pursue other options.
View as RSS news feed in XML