The following warnings occurred:
Warning [2] Undefined array key "threadviews_countguests" - Line: 745 - File: showthread.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php 745 errorHandler->error_callback
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/inc/functions_post.php 830 postParser->parse_message
/showthread.php 916 build_postbit
Warning [2] Undefined property: MyLanguage::$thread_modes - Line: 46 - File: showthread.php(1650) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php(1650) : eval()'d code 46 errorHandler->error_callback
/showthread.php 1650 eval




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can you style (css) the Control Panel to look like the website?
#14
Thanks for the hint re: the slash mvlcek - you are right - this works - your forward slash in your origiinal example doesn't work:

Code:
contentsCss: 'theme/my_theme/style.css'

As for linking the Styles js for the dropdown menu, after hours of trial-and-error testing I've determined that of the 3 examples I've seen - none of them will work locally (ie using WAMP server). However two of them will work with absolute links:

Code:
stylesCombo_stylesSet: 'my_styles:http://www.mysite.com/ckeditorstyles.js',
Code:
stylesSet: 'my_styles:http://www.mysite.com/ckeditorstyles.js',

This example given in the Wiki does NOT work:
Code:
entities : false,customConfig: 'my_styles:http://www.mysite.com/ckeditorstyles.js',

And in the CKEditor.js file "you must instruct the editor to apply the newly registered style" by putting "config.stylesSet" AFTER (NOT before) CKEDITOR.stylesSet.add as in the example below:

Code:
CKEDITOR.stylesSet.add( 'my_styles',
[
    // Block-level styles
    { name : 'Blue Title', element : 'h2', styles : { 'color' : 'Blue' } },
    { name : 'Red Title' , element : 'h3', styles : { 'color' : 'Red' } },

    // Inline styles
    { name : 'CSS Style', element : 'span', attributes : { 'class' : 'my_style' } },
    { name : 'Marker: Yellow', element : 'span', styles : { 'background-color' : 'Yellow' } }
]);

config.stylesSet = 'my_styles';

And finally, these definitions are of interest:

Quote:* Block-level styles – applied to the text blocks (paragraphs) as a whole, not limited to the text selections. These apply to the following elements: address, div, h1, h2, h3, h4, h5, h6, p, and pre.

* Object styles
– applied to special selectable objects (not textual), whenever such selection is supported by the browser. These apply to the following elements: a, embed, hr, img, li, object, ol, table, td, tr and ul.

* Inline styles
– applied to text selections for style rules using elements not defined in other style types.


Still working through the rest of it.
Charles
Reply


Messages In This Thread
Can you style (css) the Control Panel to look like the website? - by charles_i - 2011-11-12, 03:55:20



Users browsing this thread: 14 Guest(s)