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 - Add-Ons:
how to remove buttons while using TableOperations plugin


The htmlArea 2 & 3 editors have been discontinued.

We've made these forums available as a read-only reference and knowledge-base for people using or developing editors based on htmlArea 2 or 3.

Anyone who is interested in taking over version 2 or 3 is free to do so. All we ask is that you choose a new name that doesn't have "htmlarea" in it to avoid confusion with this site. We'll even give you a link in the directory to make it easier for people to find you. If you are developing or hosting an htmlArea based-editor under a new name, please submit it to our directory.

 


theLuggage
New User

Nov 18, 2004, 5:37 PM

Post #1 of 1 (5655 views)
Shortcut
how to remove buttons while using TableOperations plugin Can't Post

I'm using this code to load the htmlArea with the ContextMenu and TableOperations plugins.

If I uncomment out the lines that configure the toolbar, the page will no longer load. How can I modify the toolbar and have the plugins load? I only want to remove buttons from the "standard" htmlArea toolbar. The ones on the TableOperations plug in are fine.

<script type="text/javascript">
_editor_url = "../htmlArea/";
_editor_lang = "en";
</script>
<script type="text/javascript" src="../htmlArea/htmlarea.js"></script>
<script type="text/javascript">
HTMLArea.loadPlugin("ContextMenu");
HTMLArea.loadPlugin("TableOperations");

function initDocument() {
var editor = new HTMLArea("body");
//var cfg = editor.config;
//cfg.toolbar = [
//[ "bold", "italic", "underline", "separator",
// "copy", "cut", "paste", "space", "undo", "redo",
// "justifyleft", "justifycenter", "justifyright", "justifyfull", "separator",
// "insertorderedlist", "insertunorderedlist", "outdent", "indent", "separator",
// "textindicator", "separator",
// "createlink", "insertimage", "inserttable", "htmlmode", "separator",
// "popupeditor", "separator", "about" ]
//];

editor.registerPlugin(ContextMenu);
editor.registerPlugin(TableOperations);
editor.generate();
}
</script>


Thanks in advance for the help!

 
 
 


Search for (options)