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