Re: Selecting default class for the editor

  •  03-03-2005, 12:49 PM

    Re: Selecting default class for the editor

    Bunce,
     
    I think we can work it out.
     
    In the CEHtmlEditorProvider.vb file, you can find the following code:
     

    CEHtmlEditorProvider

    Dim s1, s2, s3, s4 As String

    s1 = Common.Globals.HostPath & "default.css"

    s2 = PortalSettings.ActiveTab.SkinPath & "skin.css"

    s3 = (PortalSettings.ActiveTab.SkinSrc).Substring(0, PortalSettings.ActiveTab.SkinSrc.LastIndexOf("/")) & "/skin.css"

    s4 = PortalSettings.HomeDirectory & "portal.css"

    'initialize the control

    cntlCE.EditorWysiwygModeCss = s1 & "," & s2 & "," & s3 & ", " & s4

     

    With the above code, we tell the editor using multiple Style Sheets the for the editable area.

    Solution 1: 

        Find  the location of containing style sheet, and append it to EditorWysiwygModeCss property:

        EditorWysiwygModeCss = s1 & "," & s2 & "," & s3 & ", " & s4 & ", yourscontaining.css"

    Solution 2: 
        
        Create a new style sheet and paste the style sheet you want to use in the editable area, and append the new style sheet to EditorWysiwygModeCss property:

        EditorWysiwygModeCss = s1 & "," & s2 & "," & s3 & ", " & s4 & ", mystyles.css"

    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 Complete Thread