Re: Having Trouble with EditorWysiwygModeCss

  •  07-25-2011, 2:19 AM

    Re: Having Trouble with EditorWysiwygModeCss

    Hi HighConcept,
     
    There is not a base directory.
     
    For example,
     
    1. I have the page below at the root of my test site.
     
    <?php include_once("cuteeditor_files/include_CuteEditor.php") ; ?>
    <html>    
        <head>
            <title>Edit Static Html Example -- PHP Content Management, PHP WYSIWYG, PHP HTML Editor, PHP Text Editor</title>
            </head>
        <body>
        <form name="theForm" action="Edithtml.php?postback=true" method="post">
              <?php
                    $editor=new CuteEditor();
                    $editor->ID="Editor1";
                    $editor->EditorWysiwygModeCss="ken.css";
                    $editor->Draw();
                    $editor=null;
               ?>
            </form>
        </body>
    </html>
     
    2. I have the css file below at the root of my test site name "ken.css"
     
     
    .redText
    {
       color:Red;
    }
     
    3.Than I add the content below in to editor html view, it show the red style for me in the editor.
     
    <div class="redText">this is a test</div> 
     
     
    Please follow the steps above to test it.
     
    Regards,
     
    Ken
View Complete Thread