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

New User

Feb 14, 2005, 8:19 PM

Views: 26496
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:

// this part works, loading HTMLArea and the plugin 
var editor = null;
function initEditor() {
editor = new HTMLArea("page_content");

// 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)

New User

Feb 16, 2005, 11:53 AM

Views: 26458
Re: [paul.n3w] Getting a plugin + custom toolbar to work at once

Hi Paul

Attached a HTML-file which works with sel defined toolbar.
It's not my own work!

Of course you have adjust the paths yourself first.

Attachments: toolbar.html (3.20 KB)

New User

Feb 17, 2005, 9:28 AM

Views: 26439
Re: [MadMiner] Getting a plugin + custom toolbar to work at once

I am having the same problem - I have a particular set of buttons defined, and can't get any plugins to load. I've tried the example above, but the same result - I can load the plugins if I don't use the custom toolbar. If I have the custom toolbar, no plugins load.

Does anybody have any other ideas?