editor defaulting to <br> instead of <p>

Last post 09-21-2005, 11:47 AM by Adam. 7 replies.
Sort Posts: Previous Next
  •  09-20-2005, 1:17 PM 10796

    editor defaulting to <br> instead of <p>

    When I press enter in the editor window, it adds <br> tags instead of <p> tags.  Does anyone know where I can change this?  A quick response would be much appreciated.  Thanks.

    Dan
  •  09-20-2005, 1:29 PM 10798 in reply to 10796

    Re: editor defaulting to <br> instead of <p>

  •  09-20-2005, 4:02 PM 10818 in reply to 10798

    Re: editor defaulting to <br> instead of <p>

    That doesn't seem to have changed the default behavior.  When I type something in and press Enter, it still inserts a <br> and goes to the next line.  I've pasted the script below for your viewing pleasure.  Is there something I'm missing?  Thanks again.

    Dan

                               <%   
                                dim content
                                content = " "
                                Dim editor
                                Set editor = New CuteEditor
                                editor.ID = "overview"
                                editor.Text = content
                                editor.FilesPath = "CuteEditor_Files"
                                editor.DocumentPath= "/pdf"
                                editor.ImageGalleryPath = "/images/uploaded"
                                editor.MaxImageSize = 150
                                editor.BreakElement = "p"
                                editor.AutoConfigure = "cows"
                                editor.ThemeType = "office2003"
                                editor.Width = 600
                                editor.Height = 600
                                editor.Draw()
                                %>       
  •  09-20-2005, 4:29 PM 10822 in reply to 10818

    Re: editor defaulting to <br> instead of <p>

    Dan,
     
    The configuration looks good to me.
     
    Can you try this example?
     
     
    Do you have problems with it?
     
    Can you tell me which version you are using?
     
     

    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

  •  09-20-2005, 5:55 PM 10825 in reply to 10822

    Re: editor defaulting to <br> instead of <p>

    I suspect I'm using the most current version of CuteEditor for ASP.  It was purchased only a couple weeks ago.

    I tried the example listed above and clicking the radio buttons doesn't seem to cause any change in the behavior of pressing the Enter key.

    I have found that if I type in a paragraph and then highlight it and choose Normal from the "Paragraph" drop-down, it does wrap the selection in <p> ... </p> tags.  However, I need the default behavior to use the paragraph tags so when a user starts to type in an empty editor window, it defaults to putting their text in a paragraph.

    Thanks.
  •  09-21-2005, 2:07 AM 10832 in reply to 10825

    Re: editor defaulting to <br> instead of <p>

    DanT_MMC
     
    IMO using a br as a break element will cause you problems.  Some of the editor tools do not work properly, in particular the numbered and bulleted lists.  For specific details look at this post:
     


    I am still waiting for an answer to my post from the moderators.  Are you experiencing the same behaviours as I have illustrated in the post?  If you click the html button at the foot of the preview screen (after entering some text) you will see they are using div as the break element.  div seems to behave as it should, I suggest using div and are very interested to hear if you or any other users are having the same problems as myself.  I would rather use a br than a div as Im sure most would (if not at least want the option to)

    HTH 
     
    BTW:  Have you tryed this editor using IE 5.5 - if so:
    Can you get it to post values to a destination page?
    Are your HTML and Preview buttons working or do they give you client side erorrs (undefined is null or not an object)?

    Wind is your friend
  •  09-21-2005, 11:25 AM 10851 in reply to 10832

    Re: editor defaulting to <br> instead of <p>

    Sorry if I wasn't clear above, but my intent is to default to using the <p> tag.  There are dozens of reasons to use <p> tags to mark-up paragraphs as opposed to using <br> or <div>, many related to accessibility and syntactical HTML, but now is not the time for that discussion... 

    I have found with further testing that the solution Adam provided above does cause the editor to use <p> as the default formatting when pressing the Enter key in IE 6, but not Firefox (I haven't tested in IE 5/5.5 yet).  I've also been having a problem with Firefox frequently crashing at the point where it starts to load the editor.  Telling my users to simply use IE as opposed to Firefox is not an option.  It seems this product is not as compatible with Firefox as it advertises.

    Adam, if you or anyone can provide some insight it would be much appreciated.
  •  09-21-2005, 11:47 AM 10856 in reply to 10851

    Re: editor defaulting to <br> instead of <p>

    DanT_MMC,

    There is some known bugs related to the firefox.

    We will release the minor version to resolve the problems.


    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

View as RSS news feed in XML