Test of FullPage plugin
<h1><tt>registerDropdown</tt></h1> <p>Here's some sample code that adds a dropdown to the toolbar. Go on, do syntax highlighting on it ;-)</p> <pre>var the_options = { "Keyword" : "keyword", "Function name" : "function-name", "String" : "string", "Numeric" : "integer", "Variable name" : "variable" }; var css_class = { id : "CSS-class", tooltip : i18n["tooltip"], options : the_options, action : function(editor) { self.onSelect(editor, this); } }; cfg.registerDropdown(css_class); toolbar[0].unshift(["CSS-class"]);</pre> <p>Easy, eh? ;-)</p>
Mihai Bazon
Last modified: Wed Jan 28 11:10:16 EET 2004