Css Class and AutoConfgure Toolbar

Last post 10-22-2010, 2:38 PM by Eric. 2 replies.
Sort Posts: Previous Next
  •  10-10-2010, 1:17 PM 64380

    Css Class and AutoConfgure Toolbar

    1. Css Class drop down issue:
    I'm referencing an external css file via

    1. $editor->EditorWysiwygModeCss="../../css/css.css";    
    2. $editor->CssClassStyleDropDownMenuNames="Bold Text8,Bold Text9";    
    3. $editor->CssClassStyleDropDownMenuList="boldtext8,boldtext9";    

    It correctly displays these styles in the editor textarea when applied.  However, in the Css Class drop down, the listed items are not styled to match the css file (They do appear, but they are not shown with style themselves).  How do I get the class drop down to show the formatted text as well when referencing an exteral css file?

    2. AutoConfigure Toolbar for HTML view
    I've created a custom file, mnw_full.config in the Autoconfigure folder.  I'm calling upon it via

    1. $editor->AutoConfigure="mnw_full";   

    The Normal view correctly displays the icons from this file.  However, my customizations in the <codeviewToolbars> section are completely ignored.  It's always showing the same default icons.  What am I missing?

  •  10-18-2010, 7:45 AM 64469 in reply to 64380

    Re: Css Class and AutoConfgure Toolbar

    So, is this not a forum to get responses to questions related to me deciding to use your products?
  •  10-22-2010, 2:38 PM 64642 in reply to 64380

    Re: Css Class and AutoConfgure Toolbar

    Dear ShawnD,
     
    Issue 1: 
     
    Please open http://phphtmledit.com/document/scr/Class_dropdown_Customization.htm , and check whether you followed step 1.
    DropDown item style customization:
    a.  Opened "cuteeditor_files\Configuration\Shared\Common.config"
    b.  please check section "  <CssClass>" , you can find the following line:
                 <html><![CDATA[<span style='background-color: yellow'>Highlight</span>]]></html>
         This is the style setting which will be applied in the dropdown list.
          You can add such line and update its style within your dropdown item.
     
    Issue 2:
     
    Please use the following propery:
    $editor->CodeViewTemplateItemList Property
     
    The toolbar items used in the editor Code View going to this string. Example
    $editor->CodeViewTemplateItemList="Save,Print,Cut,Copy,Paste,Find,ToFullPage,FromFullPage";
    Example Code

         <?php
                $editor=new CuteEditor();
                $editor->ID="Editor1"; 
                $editor->ConfigurationPath="/Configuration/AutoConfigure/a1.config"; 
                $editor->CodeViewTemplateItemList="Save,Print";   
                $editor->Draw();
                $editor=null;           
                //use $_POST["Editor1"]to retrieve the data
            ?>
     
    Thank you for asking
View as RSS news feed in XML