You are not logged in.
Pages: 1
I'm trying to limit the buttons to just a few, so that the HTML conforms to what is allowed in FLASH.
if I add
config.hideSomeButtons(" justifyright justifycenter justifyleft textindicator ");
the entire thing seems to revert to a standard HTML textarea.
Offline
I've having a hard time figuring this out. Could you possible spell it out in a bit more detail.
Offline
cinha_config.toolbar =
[
["popupeditor"],
["separator","formatblock","fontname","fontsize","bold","italic","underline","strikethrough"],
["separator","forecolor","hilitecolor","textindicator"],
["separator","subscript","superscript"],
["linebreak","separator","justifyleft","justifycenter","justifyright","justifyfull"],
["separator","insertorderedlist","insertunorderedlist","outdent","indent"],
["separator","inserthorizontalrule","createlink","insertimage","inserttable"],
["separator","undo","redo","selectall"], (HTMLArea.is_gecko ? [] : ["cut","copy","paste","overwrite","saveas"]),
["separator","killword","removeformat","toggleborders","lefttoright", "righttoleft","separator","htmlmode","about"]
];
adjust as you wish.
James Sleeman
Offline
Hello,
I know this is an old post, but is this still the correct way to override the default toolbar?
xinha_editors.[textarea name].config.toolbar = [...]
The reason I ask is that when I do this, none of the plugin buttons show up. This makes sense, since I'm overriding the buttons being generated. I don't want to edit htmlarea.js directly (although this works nicely).
What is the correct way of hiding certain buttons while still making sure the buttons added from plugins work?
Offline
This makes sense, since I'm overriding the buttons being generated.
No, normally the plugins just add their buttons to the toolbar
If it doesn't work as expected, there seems to be a different error.
If you post your config we can have a look at it and maybe spot the error.
Offline
Pages: 1