Use <br> instead of <div> and no CSS preview

Last post 12-06-2007, 11:57 PM by kermit. 2 replies.
Sort Posts: Previous Next
  •  12-04-2007, 1:22 AM 35616

    Use <br> instead of <div> and no CSS preview

    Good morning.
     
    I have some problems with my Cute Editor and I have no idea what to do anymore.
     
    The first thing is: Cute creates <div> instead of <br>. Sorry, I hate that, I think it's rubbish. If I set a line break I wanna get a line break and no <div>. How can I get Cute to use <br>?
     
    The other thing is that I assume I can assign CSS but they won't become effective in the Editor's box, neither in normal mode nor in preview mode. If I use the CSS defined here in the forum I get this preview!?
     
    That's the code Cute creates:
    <div><span class="subtitle">Test</span></div>
     
     
    It's the same in preview mode. The funny thing is that I get at least kind of preview in the dropdown itself (even if the styles are not completely transformed).
     
     
    Any ideas?
     
    Kind regards,
    Mark
     
     
  •  12-04-2007, 2:39 AM 35618 in reply to 35616

    Re: Use <br> instead of <div> and no CSS preview

    Mark,
     
    >>The first thing is: Cute creates <div> instead of <br>. Sorry, I hate that, I think it's rubbish. If I set a line break I wanna get a line break and no <div>. How can I get Cute to use <br>?
     
    Please checkn this property:
     

    Editor.BreakElement Property

    Specify the behavior when the "enter" key is pressed in the editor The default is BreakElement.Div.

    Demo:
     
    The source code of this example can be found in the download package.
     
    >>The other thing is that I assume I can assign CSS but they won't become effective in the Editor's box, neither in normal mode nor in preview mode. If I use the CSS defined here in the forum I get this preview!?
     
    Please check this property:
     

    Editor.EditorWysiwygModeCss Property

    Specifies the location of the style sheet that will be used by the editable area. Multiple Style Sheets are supported. Example EditorWysiwygModeCss="example.css,~/portal.css,/default.css"

    Hope it helps.
     
    Let me know if you have any further questions.
     
     
     
     
     

    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

  •  12-06-2007, 11:57 PM 35723 in reply to 35618

    Re: Use <br> instead of <div> and no CSS preview

    Hey Adam.
     
    Thanks, I got it. It's nut just enough to add the css to the file I assigned to CuteEditor. The styles also must be stored in the default.css file to become effective.
     
    By the way an additional question: do you know the name of the CSS class defining the default text in the editor box?
     
    Thanks and regards,
    Mark
View as RSS news feed in XML