Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
editor css
#6
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
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply


Messages In This Thread
editor css - by datiswous - 2014-12-17, 20:34:31
RE: editor css - by hameau - 2014-12-17, 21:42:19
RE: editor css - by datiswous - 2014-12-17, 23:07:53
RE: editor css - by shawn_a - 2014-12-18, 00:35:52
RE: editor css - by hameau - 2014-12-18, 02:50:51
RE: editor css - by shawn_a - 2014-12-18, 03:15:35
RE: editor css - by datiswous - 2014-12-18, 07:49:31



Users browsing this thread: 1 Guest(s)