PDA

View Full Version : OK Im lost :-) HOW DO I REMOVE A BUTTON ckeditor


Scalemotorcars
08-05-2011, 04:53 PM
Forgive me, Ive been so busy updating that I cant seem to find anything anymore.

All Im looking for is a way to remove the bottom row of buttons on the CKeditor. Using the built in feature just fades them out I would rather take them off completely.

Lynne
08-05-2011, 05:01 PM
Actually, they are faded or enabled depending on if you are in WYSIWYG mode or standard mode.

kh99
08-05-2011, 05:31 PM
If you mean that you want those buttons to go away when they're not active, then I don't know. But if you want them to always go away, then you can look at ckeditor.php, the function setToolbar builds the $this->config['toolbar'] array that configures the buttons. If you create a plugin using hook editor_construct (which is right after setToolbar is called), you can change that array.

Badshah93
08-05-2011, 05:51 PM
if you want to remove it for ever from editor box


Open ckeditor.php in forumroot/vb folder

Find And Remove it



$toolbar[] = '/';
$toolbar[] = array('Table', 'TableProperties', 'DeleteTable', '-', 'InsertRowBefore', 'InsertRowAfter', 'DeleteRow', '-', 'InsertColumnBefore', 'InsertColumnAfter', 'DeleteColumn', '-', 'Subscript', 'Superscript', 'HorizontalRule');

Scalemotorcars
08-05-2011, 06:00 PM
if you want to remove it for ever from editor box


Open ckeditor.php in forumroot/vb folder

Find And Remove it



$toolbar[] = '/';
$toolbar[] = array('Table', 'TableProperties', 'DeleteTable', '-', 'InsertRowBefore', 'InsertRowAfter', 'DeleteRow', '-', 'InsertColumnBefore', 'InsertColumnAfter', 'DeleteColumn', '-', 'Subscript', 'Superscript', 'HorizontalRule');

That was it. I was looking in the ckeditor folder and going nuts. Thanks everyone...:up:

starman?
02-27-2012, 03:46 PM
I'd pretty much like to remove every toolbar from the comments editor of the CMS and keep it very, very basic, like most of the big newspaper sites. Anybody happy to share or do I need to get my wallet out?

kh99
02-27-2012, 04:22 PM
I'd pretty much like to remove every toolbar from the comments editor of the CMS and keep it very, very basic, like most of the big newspaper sites. Anybody happy to share or do I need to get my wallet out?

Create a plugin using hook editor_toolbar_set and this code:

if (THIS_SCRIPT=='vbcms' AND $this->editor_type == 'qr')
{
$this->config['toolbar'] = array(array());
$toolbartype = 0;
}


ETA: And something else I didn't even know about until Lynne just posted it - there's an option to turn off the toolbars, but I think it only works for all the "quick reply" editors (and not just cms): AdminCP > Settings > Options > Message Posting Interface Options > Enable Clickable Message Formatting Controls