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

Reply
 
Thread Tools Display Modes
  #1  
Old 04-05-2013, 03:48 AM
excessive34 excessive34 is offline
 
Join Date: Feb 2011
Posts: 67
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Very annoyed with the way the editor is setup

You guys make it nearly impossible to edit certain things..

I would like to change the color of the boxes within the text editors... Go to the stylevars, simple change. Dandy..

Well now, I have an annoying white border on the bottom of the Font box and also the size box... Ok fine, Ill see which tag is targeted, search for it.. and change those elements... Oh wait, those elements dont exist WITHIN ANY CSS SAVED... How the hell am I supposed to edit them?

Cant edit the hover color of the Font/Size boxes, cant edit the color of the actual popup window of the font/size boxes and cant remove the border because apparently, the targeted tag is non-existent.

What am I missing here?

".cke_skin_kama .cke_rcombo a, .cke_skin_kama .cke_rcombo a:active, .cke_skin_kama .cke_rcombo a:hover"

Is what controls the borders around the popup box.. but it does not exist in any css files.

Extremely annoying.
Reply With Quote
  #2  
Old 04-05-2013, 03:56 AM
kNeo kNeo is offline
 
Join Date: Jun 2009
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What's even worse is that the vB CKEditor doesn't support the CKEditor skins.

At any rate customizing the CSS for the editor is rather aggravating. G'luck, try not to lose your sanity and/or fly into a rage. I came pretty close myself. What's worse is that when I finished, one of the buttons (indent or something) didn't display right, like it was missing the graphic. Years later and I still have no idea wtf is wrong.

At least nowadays there's things like Firebug and/or Firefox/Chrome inspector things. I'd've killed for something like that back when I customized the editor to be white on black, vs black on white.
Reply With Quote
  #3  
Old 04-05-2013, 04:12 AM
excessive34 excessive34 is offline
 
Join Date: Feb 2011
Posts: 67
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Firebug is wonderful, however its completely useless when it tells me exactly what tag I need to change.. but that tag doesnt exist anywhere within the vbulletin stylesheets.
Reply With Quote
  #4  
Old 04-05-2013, 03:29 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The ckeditor has it's own stylesheets. So, just do a Search in your files for the editor class and you should find it.
Reply With Quote
  #5  
Old 04-05-2013, 10:25 PM
kNeo kNeo is offline
 
Join Date: Jun 2009
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by excessive34 View Post
Firebug is wonderful, however its completely useless when it tells me exactly what tag I need to change.. but that tag doesnt exist anywhere within the vbulletin stylesheets.
vBulletin's stylevars don't actually change a whole lot of the ckeditor's styles; it mostly just overrides some generic stuff (like background colors).

You can still use firebug, you just have to put the css targeting whatever selector in additional.css and it will override whatever it is you're trying to override. I'm not sure why you're so hung up on finding the CSS within the vB templates -- additional.css is called last, thus will override previous css, and if it's not overriding it you can always use !important.

for instance this is part of my editor css (I was bad, I abused !important because I was lazy):
Code:
.cke_wrapper {background: #999 !important;padding:0!important;}
.cke_skin_kama {border: 1px solid #555!important;padding:0!important;}
.cke_off, .cke_disabled, .cke_button_enhancedsource {background: #181818!important;}
.cke_toolgroup {background: #333 !important;}

FWIW firebug can also show you which CSS is being called for editor as well, I think it's located under clientscript/ckeditor/skins/kama/editor.css. Try not to directly edit this file, overwise a vB update can/will destroy your customizations.
Reply With Quote
  #6  
Old 04-06-2013, 06:03 PM
John Lester John Lester is offline
 
Join Date: Nov 2004
Posts: 543
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kNeo View Post
FWIW firebug can also show you which CSS is being called for editor as well, I think it's located under clientscript/ckeditor/skins/kama/editor.css. Try not to directly edit this file, overwise a vB update can/will destroy your customizations.
Not all changes done in additional.css that affect the editor actually work.

https://vborg.vbsupport.ru/showthread.php?t=287773

I still have no idea why I can't change the background color of the "Font' and "Size" boxes in the editor using additional.css
Reply With Quote
  #7  
Old 04-11-2013, 02:10 AM
kNeo kNeo is offline
 
Join Date: Jun 2009
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by John Lester View Post
Not all changes done in additional.css that affect the editor actually work.

https://vborg.vbsupport.ru/showthread.php?t=287773

I still have no idea why I can't change the background color of the "Font' and "Size" boxes in the editor using additional.css
Yeah I ran into this the first time I attempted to seriously customize the editor.

For what it's worth, you can modify these elements by stick your css at the bottom of editor_contents.css -- this is actually the only css called by both the Font Size and Font Family iframes, as such it was the only place I could stick my css. And even then, !importants might be necessary.

Oh, and Firebug, at least for me, was a bit flaky -- I spent like 20 minutes trying to figure out the right element, when the fault lied with Firebug not updating the element correctly (however reloading the page with the CSS added to editor_contents.css rightly displayed the changes I was after).

At any rate, the end result was this (not happy yet, but at least I figured how to change the stupid colors):


next challenge: the color drop down, wee!

EDIT: To be clear, I only discovered this out tonight. Previously I had ignored the issue, since it seemed so minor. This time I'm after a finished style without any glitches like this. I swear the next style I create is going to be a lighter one; there are far too many colors that assume a white/light design.
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 08:51 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04432 seconds
  • Memory Usage 2,224KB
  • 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_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)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