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 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 861 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
Custom Styles not Displayed in Editor
#10
Alan-A Wrote:I'm in the process of working through it and there are three things I don't understand:
  • Are you combining the default styles from the CKEditor 'contents.css' file with your own theme styles in your default.css file?

I'm using my own theme file default.css and I have no idea if it is combined with CKEditor's style sheet or replaces it ;-)

Alan-A Wrote:
  • What is the significance of the declaration of the "content" ID in the 'template.php' file?
    As far as I can see, CKEditor uses its 'bodyId' parameter to set the ID of the HTML file in the editor's iframe. I would have thought that I could use this ID to make sure that the default CKEditor styles don't get applied to elements that are outside the editing window. However for this to happen the default CKEditor styles really need to have a prefix (or in the case of the body tag itself, a suffix as you show). As this works without the declaration in the template file, I'm puzzled as to what it is for.

It's to get exactly the styles for the content div in my template, which looks like this:
Code:
...
<body>
...
<div id="content"> ... <?php get_page_content(); ?> </div>
...
Thus all rules #content ... in my style sheet will automatically apply to the editor, too.
And you might need to add additional rules for the editor (because you don't have a body > ... > div#content hierarchy) by specifying rules for body#content ... - they will only apply to the editor, e.g. I have a rule
Code:
body#content {
  width: 94%;
  background-color: white;
}

Alan-A Wrote:
  • Do you manage to get the name of your class (in your example, that would be "Code") formatted, when it's shown in the editors "Styles box?" I'm only getting my browser's default formatting.

Yes, you just have to make sure to have a simple rule (like .code or span.code) in your style sheet and not just a too specific one (like #content span.code which will not match).
I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.
Reply


Messages In This Thread
Custom Styles not Displayed in Editor - by Alan-A - 2011-09-18, 20:07:14
Custom Styles not Displayed in Editor - by Alan-A - 2011-09-18, 20:40:53
Custom Styles not Displayed in Editor - by Connie - 2011-09-18, 20:42:11
Custom Styles not Displayed in Editor - by mvlcek - 2011-09-18, 21:05:34
Custom Styles not Displayed in Editor - by Alan-A - 2011-09-19, 02:36:02
Custom Styles not Displayed in Editor - by Alan-A - 2011-09-28, 03:11:44
Custom Styles not Displayed in Editor - by Connie - 2011-09-28, 03:25:23
Custom Styles not Displayed in Editor - by Alan-A - 2011-09-28, 18:10:46
Custom Styles not Displayed in Editor - by Alan-A - 2011-09-30, 00:23:42
Custom Styles not Displayed in Editor - by mvlcek - 2011-09-30, 00:58:45
Custom Styles not Displayed in Editor - by Alan-A - 2011-09-30, 03:02:06
Custom Styles not Displayed in Editor - by mvlcek - 2011-09-30, 03:30:48
Custom Styles not Displayed in Editor - by Connie - 2011-09-30, 03:30:55
Custom Styles not Displayed in Editor - by Alan-A - 2011-10-03, 01:11:50
Custom Styles not Displayed in Editor - by mvlcek - 2011-10-03, 01:36:08
Custom Styles not Displayed in Editor - by Alan-A - 2011-10-03, 02:10:16



Users browsing this thread: 2 Guest(s)