Issue with css in current version

  •  01-20-2010, 12:36 AM

    Issue with css in current version

    Hi -
     
          I'm currently using v5.1 in production, and want to upgrade to the latest version, but have a problem reproducing the behaviour of 5.1 -- in 5.1, when i load a file that contains a stylesheet link, the editor will apply that stylesheet to the html file in the editor, as long as i correctly set the Editor.BaseHref value to match the file's location in the site.  In the current version, i can't get it to apply the stylesheet at all, even using the EditorWysiwygModeCss property.   Am i missing something, or  was this just a quirk of 5.1?

     
    the page containing the editor is the EditHtml.aspx from your demo, with the following modification:
     

            void Page_Load(object sender, System.EventArgs e)
            {
                Editor1.FullPage = true;
                Editor1.Visible = true;
                Editor1.BaseHref = "http://localhost";
                Editor1.UseRelativeLinks = true;
                Editor1.EditCompleteDocument = true;
                Editor1.RemoveServerNamesFromUrl = true;
                Editor1.ToggleBorder = false;
                Editor1.EnableStripScriptTags = false;
                Editor1.EditorWysiwygModeCss = "/htmLibrary/common.css";
                Editor1.LoadHtml("~/testdoc.aspx");
            }
     
     
    content of my html doc (testdoc.aspx):
     
    <<html>

    <head>
    <link type="text/css" rel="stylesheet" href="http://cutesoft.net/htmlibrary/reset.css">
    <link type="text/css" rel="stylesheet" href="http://cutesoft.net/htmlibrary/common.css">
    </head>

    <body>

    <div id="PageContainer">
        <div id="BackGround2">
            <div id="OutLineBox">
                <div id="MainContentContainer" class="full-width">
                    <div id="MainContentBG2" class="full-width">
                        <div id="LeftNav">
                            <div id="LeftNavQuote">
                                <img src="http://cutesoft.net/images/quote_home.jpg" width="180" height="178">
                            </div>
                        </div>
                        <div id="MainContent">
                            
                        </div>
                        <div id="RedLine" class="home">
                            <img src="http://cutesoft.net/images/redline.gif" width="1" height="350"></div>
                        <div id="RightColumnCopy">
                            <div id="flash-container">
                                <img src="http://cutesoft.net/images/main_imagereplacement.jpg"> </div>
                        </div>
                        <br class="cleared">
                    </div>
                </div>
            </div>
    </div>
    </div>

    </body>

    </html>
    ------
     
    none of the styles in common.css are applied to the page while it's being editted.  
     
     
     thanks for your help,
    james
     
     
     
    Filed under:
View Complete Thread