Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 04-19-2014, 03:56 AM
getwhatuask4 getwhatuask4 is offline
 
Join Date: Oct 2011
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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!
Reply With Quote
  #2  
Old 04-19-2014, 05:08 AM
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
Senior Member
 
Join Date: Sep 2008
Location: North Carolina
Posts: 5,844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 .
Reply With Quote
  #3  
Old 04-19-2014, 11:24 AM
getwhatuask4 getwhatuask4 is offline
 
Join Date: Oct 2011
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:
Originally Posted by TheLastSuperman View Post
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 .
Yes that is precisely where I thought this simple option might be found, but if you examine my question more carefully you will see that what I was seeking to do was to adjust the default colors in the drop-down picker menu within the WYSIWYG editor at every level of the site, and in the end I had to go far far farther afield in my quest :'(

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...
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:52 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08927 seconds
  • Memory Usage 2,183KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (3)postbit
  • (3)postbit_onlinestatus
  • (3)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete