[opencms-dev] htmlarea css Module

Peter korn peterkorn at gmx.net
Wed Apr 27 12:16:48 CEST 2005


Hi,

answering my own question:
The plugin works.

just uncomment the line // HTMLArea.loadPlugin("CSS");
The line     // __editor.registerPlugin(CSS);
does not work but if you add the registerPlugin after the definition of the
pageStyle and befor the __editor.generate(); function it works. This is the
code that works for me:

    config.pageStyle = "@import url(<%= cms.link(wp.getUriStyleSheet())
%>);";
// start of registering plugin vvvvvvvvvvvvvvvvvvvv
    __editor.registerPlugin(CSS, {
          combos : [
            { label: "CSS:",
                         // menu text       // CSS class
              options: { "None"           : "",
                         "bordernone" : "bordernone",
                         "linieunten" : "linieunten",
                         "Code" : "code"
                       },
              context: "pre"
            },
            { label: "Info",
              options: { "None"           : "",
                         "Quote"          : "quote",
                         "Highlight"      : "highlight",
                         "Deprecated"     : "deprecated"
                       }
            }
          ]
        });
// end ^^^^^^^^^^^^^^^^^^^^^^
    __editor.generate();
    return false;




Peter korn schrieb:
> Hi,
> 
> i want to use css classes in the htmlarea editor in OpenCms 6 b1.
> In the editor.jsp for htmlarea there is the comand to load the CSS Module
> but  the line is commented out:
> 
> // HTMLArea.loadPlugin("CSS");
> 
> If i remove the '//' the editor dosent work anymore. Is there an other way
> to use css classes or is this a not known bug?
> 
> By the way the html area Editor project is stopped (see
> http://www.htmlarea.com/). Are there any plans to switch to an other
Editor
> that works in firefox?
> 
> thanks
> 
> peter
> 

-- 
+++ GMX - die erste Adresse für Mail, Message, More +++

10 GB Mailbox, 100 FreeSMS  http://www.gmx.net/de/go/topmail



More information about the opencms-dev mailing list