The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Changing the default colors in the text editor drop-down (picker, swatch, selector)
Hey,
I have been searching the forums for a solution to how to swap out the colors in the WYSIWYG text editor so as to better fit my site's overall style. Especially, I would like to remove certain colors and add other colors in their place. I see a few people asking this question in previous versions of VB, but I am running 4.2.2 Any help much appreciated! |
#2
|
||||
|
||||
This will help with the rest of the site - https://vborg.vbsupport.ru/showthread.php?t=256370
For the editor colors try looking under the stylevars in the style manager, there will be a family of editor stylevars listed simply scroll to find . |
#3
|
|||
|
|||
Sorted! :-)
After having a look here as well as many other places on this forum, I finally found the correct location and made the easy edit so as to replace the colors I wanted to swap out. After changing the files outlined in that post (to no effect), the location that actually controls this color swatch is as follows - httpdocs/clientscript/ckeditor/ckeditor.js Simply replace the hex values with the ones you want at both locations in the file, one near the top and one near the bottom. I would not suggest adding extra colors as they will not fit within the established frame. (strangely a search of the entire site data did not pick this file up as containing the color codes that did in fact reside here, so it took a fair bit of poking around..and a bit of luck) Man, that was a mission for something so simple... so hopefully this helps someone else! *Note: by the time I had finished, I had added the desired colors to almost every file that contained color arrays etc, but I don't think that made any difference until I found the right one - but if you do this and it doesn't work for you then I can always let you know which other ones I also adjusted.. --------------- Added [DATE]1397910923[/DATE] at [TIME]1397910923[/TIME] --------------- Quote:
This could be a simple option in the stylevars, after all, almost all sites have favorite header and highlight colors that suit their theme etc. Thanks for your suggestion anyway! Happy to at least get a fast response... |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|