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";
    content of my html doc (testdoc.aspx):

    <link type="text/css" rel="stylesheet" href="">
    <link type="text/css" rel="stylesheet" href="">


    <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="" width="180" height="178">
                        <div id="MainContent">
                        <div id="RedLine" class="home">
                            <img src="" width="1" height="350"></div>
                        <div id="RightColumnCopy">
                            <div id="flash-container">
                                <img src=""> </div>
                        <br class="cleared">


    none of the styles in common.css are applied to the page while it's being editted.  
     thanks for your help,
    Filed under:
View Complete Thread
Powered by Community Server (Commercial Edition), by Telligent Systems