htmlArea

A directory of browser-based WYSIWYG editors

  MAIN
INDEX
SEARCH
POSTS
WHO'S
ONLINE
LOG
IN

Home: htmlArea 3 (beta): htmlArea 2 & 3 archive (read only): htmlArea v3.0 - Support Requests: Getting a plugin + custom toolbar to work at once: Edit Log



paul.n3w
New User

Feb 14, 2005, 8:19 PM


Views: 25431
Getting a plugin + custom toolbar to work at once

Hi, I'm new to HTMLArea, and I'm having trouble configuring the toolbar (outside of the htmlarea.js file) and getting a plugin (table-operations) to work at the same time. I can do one or the other... but not both. I thought something like this would work:


Code
// this part works, loading HTMLArea and the plugin 
HTMLArea.loadPlugin("TableOperations");
var editor = null;
function initEditor() {
editor = new HTMLArea("page_content");
editor.registerPlugin(TableOperations);
editor.generate();

// Now I want to limit the icons displayed in the toolbar, so I thought you apply a edit to the configuration next?

var config = new HTMLArea.Config();
config.toolbar = [[ "fontsize", buttons... etc etc.. ]];
HTMLArea.replace("page_content", config);
}


So, what I get is not one HTMLArea editor, but two... one with the plugin and all the toolbar buttons, and another with no plugin and just the buttons I want.

Am I doing something out of order?

Thank you!


(This post was edited by paul.n3w on Feb 14, 2005, 8:21 PM)


Edit Log:
Post edited by paul.n3w (New User) on Feb 14, 2005, 8:21 PM


Search for (options)