The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hello,
Am looking for cusotmizing ckeditor in my forums, wherein I would want to remove the Options related to "Table" and "Codes" like "Wrap php tags around selected tags". PFA screen shot of the options that is marked in red box which I would like to remove. Attachment 146500 Is there a way to do this ? Appreciate any help. Thanks. |
#2
|
|||
|
|||
![]()
I believe you can do this by turning off the advanced WYIWYG editor.
ACP -> Settings -> Options -> Message Posting Interface Options Change Full Editor in the "Enable Clickable Message Formatting Controls" section to Enable Standard Controls Note: This will limit your users to using only the basic editor. If you want them to be able to use the full WYSIWYG editor then you will have to make some template edits. I do not have the time to find those templates and suggest which edits to make, but don't worry someone else will come along and help you with that ![]() |
#3
|
|||
|
|||
![]()
Hello John,
Thanks for the response. In fact I would want WYSIWYG editor but just that I do not want some options in this editor like table, code etc. Looked up at the template - editor_ckeditor but it does not look like a simple template edit to comment those options. Any other way to do this? |
#4
|
|||
|
|||
![]()
It's not in a template. You would need to comment out the lines you don't want in ckeditor.php.
Sometimes it's a bit of trial and error to achieve this correctly. |
#5
|
|||
|
|||
![]()
You can do it with a plugin at "editor_toolbar_set"
Look at vb/ckeditor.php, line 338. It's built up the array $toolbar then changed it to $this->config['toolbar']. So you want to re-write $this->config['toolbar'][13] or $this->config['toolbar'][14] if $iespell, so it would be something like this Code:
if($this->editor_type == 'fe' OR $this->editor_type == 'cms_article') { if($iespell) { $this->config['toolbar'][14] = array( ........); } else { $this->config['toolbar'][13] = array( .......); } } |
#6
|
|||
|
|||
![]()
Hello Nerbert,
Re: You can do it with a plugin at "editor_toolbar_set" I checked the Plugin manager in AdminCP but did not see this plugin. Where do I find it to edit? Thanks. |
#7
|
|||
|
|||
![]()
You make it yourself. You have the hook location and the basic structure of the code that goes in it. Now just pick and choose what parts you want based of the code in vb/ckeditor.php
|
#8
|
|||
|
|||
![]()
I believe it is simple, do either option:
1- Method A: find out what id of each tool icon you want to hide using Chrome inspection element tool, then add a css style to your additional.css like this: #cke_6{display:none;} so you will do that for each element you want to hide. 2- Method B (if you use ckeditor mod for MARCO): you can go to Admin Cp/ settings/ User Registration Options/ select show standard editor toolbar. if you are using a mod for the ckeditor such as, https://vborg.vbsupport.ru/showthread.php?t=264219 you can choose the options to show or hide whatever you like... Good luck, |
#9
|
|||
|
|||
![]()
Hello Nerbert,
Thanks for the pointer, yes I was able to achieve commenting out the toolbar by looking at the file - vb/ckeditor.php Thanks fxdigi-cash too for your inputs too and that helped. BTW do you guys have any suggestion here - https://vborg.vbsupport.ru/showthread.php?t=302585 Thanks in advance. |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|