Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Design and Graphics Discussions
  #1  
Old 10-03-2014, 09:31 PM
HM666's Avatar
HM666 HM666 is offline
 
Join Date: Jan 2014
Location: Little Rock, AR
Posts: 1,060
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Need Help W/CSS Code in Additional template

I'm trying to edit the editor on a skin that I plan on putting in my skin shop. Its a dark skin so the white or light borders and backgrounds inside the drop down is not suitable for what I'm doing.

I'm able to edit the editor.css file and change the CSS I want to change to make the borders/backgrounds dark, but when I add the code into the additional.css template and even include !important in the code it will not show properly on the skin. For obvious reasons its not optimal to have this code in the editor.css file since this skin will be redistributed. The css code that does change the borders is...

Code:
.cke_panel_listItem a {
padding:2px;
display:block;
border:1px solid #000000!important;
color:inherit!important;
text-decoration:none;
overflow:hidden;
text-overflow:ellipsis;
}*
I've tried many different variations, I've tried just using

Code:
.cke_panel_listItem a {
border:1px solid #000000!important;
}*
as well both have not worked once I have placed the editor.css file back with the default values. What do I need to do besides changing the code in the editor.css to get this to render properly in the additional.css template?
Reply With Quote
  #2  
Old 10-03-2014, 10:54 PM
nerbert nerbert is offline
 
Join Date: May 2008
Posts: 784
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't think there's any alternative to editing editor.css. The CK Editor imports or pulls in (if that's the right term) the editor.css template. If you want another css file to override it it would take a plugin to concatenate it into the list. I don't know if you want a plugin in a style package but I think I can get it going if you want to add another css file as a template.

See line 122 vb/ckeditor.php. I've added more css by concatenation in the editor_construct hook. I think I can get it working. But the bottom line is nothing in additional.css will affect the editor
Reply With Quote
  #3  
Old 10-03-2014, 10:55 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

the ckeditor loads in an iframe of sorts, you cant edit it via additional.css
Reply With Quote
  #4  
Old 10-03-2014, 11:02 PM
HM666's Avatar
HM666 HM666 is offline
 
Join Date: Jan 2014
Location: Little Rock, AR
Posts: 1,060
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Zachery View Post
the ckeditor loads in an iframe of sorts, you cant edit it via additional.css
You did not read my post. I DID make edits and add the css to additional.css and it does not work. The code posted above IS in my additional.css template.
Reply With Quote
  #5  
Old 10-03-2014, 11:04 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Please re-read the my statement.

You cannot make changes to the additional.css that will effect ckeditor templates/areas because they're loaded in an iframe.
Reply With Quote
  #6  
Old 10-03-2014, 11:12 PM
HM666's Avatar
HM666 HM666 is offline
 
Join Date: Jan 2014
Location: Little Rock, AR
Posts: 1,060
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by nerbert View Post
I don't think there's any alternative to editing editor.css. The CK Editor imports or pulls in (if that's the right term) the editor.css template. If you want another css file to override it it would take a plugin to concatenate it into the list. I don't know if you want a plugin in a style package but I think I can get it going if you want to add another css file as a template.

See line 122 vb/ckeditor.php. I've added more css by concatenation in the editor_construct hook. I think I can get it working. But the bottom line is nothing in additional.css will affect the editor
I would rather not have a plugin, I really think there has to be a way to remedy this in the template either by editing a html template or in the css templates. I've attached some screen shots of what I'm trying to change. The first one is the outline border that I would like to change and the second is the drop down menu that I have changed in the editor.css and will not change anything if I use it in the additional.css template.
Attached Images
File Type: jpg borderissue.jpg (67.5 KB, 0 views)
File Type: jpg menuwithwhite.jpg (69.6 KB, 0 views)
Reply With Quote
  #7  
Old 10-03-2014, 11:14 PM
HM666's Avatar
HM666 HM666 is offline
 
Join Date: Jan 2014
Location: Little Rock, AR
Posts: 1,060
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Zachery View Post
Please re-read the my statement.

You cannot make changes to the additional.css that will effect ckeditor templates/areas because they're loaded in an iframe.
Ok in that case how can I make it do as I want?
Reply With Quote
  #8  
Old 10-03-2014, 11:50 PM
nerbert nerbert is offline
 
Join Date: May 2008
Posts: 784
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can try this plugin.

hook location "editor_construct"

Code:
$this->config['contentsCss'] .= $css_path . ',editor_additional.css';
Then make a new "editor_additional.css" template

The editor does not import additional.css you have to extend the list of templates with one of your own
Reply With Quote
  #9  
Old 10-04-2014, 02:21 AM
HM666's Avatar
HM666 HM666 is offline
 
Join Date: Jan 2014
Location: Little Rock, AR
Posts: 1,060
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by nerbert View Post
You can try this plugin.

hook location "editor_construct"

Code:
$this->config['contentsCss'] .= $css_path . ',editor_additional.css';
Then make a new "editor_additional.css" template

The editor does not import additional.css you have to extend the list of templates with one of your own
Thanks for the help.
Reply With Quote
Reply

Thread Tools
Display Modes

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 12:25 AM.


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.04471 seconds
  • Memory Usage 2,262KB
  • Queries Executed 12 (?)
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
  • (4)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (2)postbit_attachment
  • (9)postbit_onlinestatus
  • (9)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_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
  • postbit_attachment
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete