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
CKEDITOR Stylesheet
#4
mikeh Wrote:I see, could you think of any way to make it automatically know the default stylesheet for the active theme?

Mikeh,

your question is not explicite enough. What do you want exactly:
  • do you want that the text-area in the editor uses the same css-elements as the default stylesheet of the active theme
  • do you want to have all or some of your css-elements in the styles-dropdown-lists of the editor?

#1:

as long as every theme uses its own filename for the default stylesheet, this seems difficult to me.
I just checked some themes and found

- styles.css
- default.css
- ...

some locate the css in same folder as template.php, some othes use more complicated filestructures with subdirectories...

as there are no strict rules for themes (and that is ok) this seems difficult to do automatically

the only way would be to add a dialogue when activating a theme

#2:

maybe this can be done in in a custom-config-file or in the editor-options (which I did not test), see here:

http://docs.cksource.com/CKEditor_3.x/Ho...tomization

if you want to define it automatically so that it will follow all theme-switches, it will need a certain "styles.js" in every theme folder, see here: http://docs.cksource.com/CKEditor_3.x/De...ide/Styles

I do not see any way to have it automatically

the best would be some more knowledge about ckeditor and how it works, as these questions arise with every CMS or blog-system or whatever ... it is not "get-simple-specific'

I am thinking about collecting infos like that in the wiki, but as usually too many projects and not enough time
|--

Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply


Messages In This Thread
CKEDITOR Stylesheet - by mikeh - 2011-04-09, 04:26:39
CKEDITOR Stylesheet - by n00dles101 - 2011-04-09, 05:18:02
CKEDITOR Stylesheet - by mikeh - 2011-04-09, 05:27:50
CKEDITOR Stylesheet - by Connie - 2011-04-09, 17:46:32
CKEDITOR Stylesheet - by patriotmedia - 2011-11-15, 15:32:39
CKEDITOR Stylesheet - by Connie - 2011-11-15, 16:48:32



Users browsing this thread: 2 Guest(s)