Css styling the editing area

Last post 01-28-2008, 10:34 AM by Adam. 1 replies.
Sort Posts: Previous Next
  •  01-28-2008, 6:25 AM 36581

    Css styling the editing area

    Hi, I am creating a cms where the edited content is going into a css-styled DIV, and I want to make the editing area look like the target DIV area (size, background colour, margins & padding, text size etc)
     
    Obviously I can do this by putting equivalent opening and closing DIV tags into the text area to start with, but then the user might delete them or change them. Is there any way to apply equivalent css rules assigned to the DIV to the editing area?
     
    Thanks
  •  01-28-2008, 10:34 AM 36586 in reply to 36581

    Re: Css styling the editing area

    hazydavy,
     
    Please use the following property to control the editing area:
     

    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,/default.css"

     


    Example Code

          <%
               Dim editor
               Set editor = New CuteEditor
               editor.ID = "Editor1"
               'Specifies the location of the style sheet that will be used by the editable area.
               editor.EditorWysiwygModeCss = "example.css,/default.css"
               editor.Text = "Hello World"
               editor.Draw()
          %>


    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