PDA

View Full Version : Partially disabling editor functions


DemOnstar
03-12-2014, 03:22 PM
Greetings all.

How does one disable the functions crossed out below?

https://vborg.vbsupport.ru/attachment.php?attachmentid=148453&stc=1&d=1394637607

Or perhaps allow permissions on these?

I don't see anybody using these and since I don't know how they would affect everything, I want to avoid this potential spanner.

Is this not a common request?

Thanks..

ozzy47
03-13-2014, 12:59 AM
That will require a file edit, open the file, vb/ckeditor.php and find the following:

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

And replace it with this:

$toolbar[] = array('Subscript', 'Superscript', 'HorizontalRule', 'PageBreak', 'PreviewBreak');
Note, that is in there twice, around lines, 321 and 345

DemOnstar
03-13-2014, 05:44 AM
Absolutely spot on!

This boy is learning ladies and gentlemen.

ozzy47
03-13-2014, 10:29 AM
Glad it worked. :)