Paragraph/BR/Div bug

Last post 09-20-2005, 4:07 PM by Adam. 6 replies.
Sort Posts: Previous Next
  •  09-12-2005, 3:13 PM 10407

    Paragraph/BR/Div bug

    I have the editor set to use DIV tags as the break element.
     
    If I am typing, this works fine. Each time I press enter a new div is created. However, if you create a large paragraph and try to break it up into two aragraphs, it does not insert a new DIV, instead it uses BR tags. So far as I can tell, once you have a paragraph entered, there is no simple way to break it down into two or more paragraphs.

    Creating paragraphs is fine, but I need to give my users the ability to edit them as well. If I have the control set to use DIV tags, it should only use Div tags, and it should only use a BR tag if I press shift+enter. Right?
     
    Is this a known bug and if so is there a planned relase for it to be fixed?
  •  09-12-2005, 3:29 PM 10409 in reply to 10407

    Re: Paragraph/BR/Div bug

    This is not a bug. It's design intention.

    Let me explain the break elment isssue.

    For example, you set your breakelement to DIV.


     
    Scenario 1:
     
    <div>hello world</div>pess enter here
     
    You should get the following result:
     
    <div>hello world</div>
    <div>&#160;</div>

    -----------------------------------------------------------------------------------------------

    Scenario 2:
     
    <div>hello pess enter here world</div>
     
    You should get the following result:
     
    <div>hello <br/> world</div>




    In the Scenario 1, Cute Editor detects you just finish eding a block and want to start a new block (paragraph). So it will automatically insert the block element <div> or <p>.

    In the Scenario 2, Cute Editor detects you are editing the content in the same block (paragraph).

    So it will use the break element to force a break in the current line of text.


    Hope it helps.

    Let me know if you have any further questions about this.

    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-12-2005, 4:16 PM 10419 in reply to 10409

    Re: Paragraph/BR/Div bug

    But if I have a long paragraph and I want to break it up into multiple paragraphs how can I do this?
     
    Here is the scenario:
    The user wants to paste in some text from a word editor or something. We have it set to strip and just paste as plain text. So then, then want to do the formatting within the editor, like create paragraphs, headings that are centered etc. With the textbox functioning the way ti currently does, the whole body of text that they paste in initially is one single DIV, so any editing they do just creates breaks within that div. So if they have a heading in there that they want to center, they can't because if they select just the line they want centered and click the center button, it just centers the whole body of text that they pasted in.

    If I place the cursor in the middle of a div tag and press enter, and my break function is set to DIV shouldn't it close the current div I am in, and insert a new opening div tag where my cursor is? If I wanted a BR tag I could press Shift+Enter right?
    Thanks,
    Josh
  •  09-20-2005, 3:00 PM 10802 in reply to 10419

    Re: Paragraph/BR/Div bug

    Can you please comment on this?
  •  09-20-2005, 3:33 PM 10813 in reply to 10802

    Re: Paragraph/BR/Div bug

    Cutesoft no likey when we make constuctive criticism about their control. They give you the silent treatment!
  •  09-20-2005, 3:39 PM 10814 in reply to 10813

    Re: Paragraph/BR/Div bug

    I have to remove the post which contains a link to another new editor.

    Because we are investigating the editor referenced by that client, there are some copyright issues.
     
    Basically the author of that editor steals both code and content from us.
     

    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, 4:07 PM 10819 in reply to 10814

    Re: Paragraph/BR/Div bug

    Here is the scenario:
    The user wants to paste in some text from a word editor or something. We have it set to strip and just paste as plain text. So then, then want to do the formatting within the editor, like create paragraphs, headings that are centered etc. With the textbox functioning the way ti currently does, the whole body of text that they paste in initially is one single DIV, so any editing they do just creates breaks within that div. So if they have a heading in there that they want to center, they can't because if they select just the line they want centered and click the center button, it just centers the whole body of text that they pasted in.


    Do you mean all your content are in a big DIV?

    If all your content are in a big DIV and you place the cursor in the middle of a div tag and press enter, CuteEditor will automatically insert a BR tag.

    If yout to insert the block level break, you can use the  pragrapgh button.
     
    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

View as RSS news feed in XML