2014-12-18, 03:15:35
indeed, it explains what it styles with regards to GS, but since ckeditor also has a different editor.css you will have 2 editor.css loading on your site, which can make for confusing debugging and explanation of which we are talking about which does what.
My point being not using the same style for ckeditor as editor.css is that your style probably has
rules for selectors like this
.section h3
.wrapper h3
.grid-4 h3
<div class="section"><h3>
get_content() <-- h3 in here wont be styled in backend but will be in front end, since selectors won't exist in the ckeditor instance because it is a fragment.
Now there are ways to hack this stuff into the editor also, but that is beyond this conversation.
so you might want special rules in editor.css to style these correctly in the editor but not want that extra stuff in your actual site style.
Same way your body styles wont be applied in ckeditor because there is none in the editor.
here are some more cke config for style ( note these refer to 4.3x )
http://docs.cksource.com/ckeditor_api/sy...ontentsCss
http://docs.cksource.com/ckeditor_api/sy....bodyClass
http://docs.cksource.com/ckeditor_api/sy...ml#.bodyId
And then there is styles, which i honestly are not familiar with, but someone needs to figure out how to incorporate this into themes practically and not break when switching themes.
stylesheetparser plugin
http://docs.ckeditor.com/#!/guide/dev_howtos_styles
My point being not using the same style for ckeditor as editor.css is that your style probably has
rules for selectors like this
.section h3
.wrapper h3
.grid-4 h3
<div class="section"><h3>
get_content() <-- h3 in here wont be styled in backend but will be in front end, since selectors won't exist in the ckeditor instance because it is a fragment.
Now there are ways to hack this stuff into the editor also, but that is beyond this conversation.
so you might want special rules in editor.css to style these correctly in the editor but not want that extra stuff in your actual site style.
Same way your body styles wont be applied in ckeditor because there is none in the editor.
here are some more cke config for style ( note these refer to 4.3x )
http://docs.cksource.com/ckeditor_api/sy...ontentsCss
http://docs.cksource.com/ckeditor_api/sy....bodyClass
http://docs.cksource.com/ckeditor_api/sy...ml#.bodyId
And then there is styles, which i honestly are not familiar with, but someone needs to figure out how to incorporate this into themes practically and not break when switching themes.
stylesheetparser plugin
http://docs.ckeditor.com/#!/guide/dev_howtos_styles