tinymce vs ckeditor style handling: <span> vs <p>

Questions about how to use the online - editors and suggestions how to improve them
Post Reply
svasti
Posts: 1659
Joined: Wed Dec 17, 2008 5:08 pm

tinymce vs ckeditor style handling: <span> vs <p>

Post by svasti » Wed Feb 06, 2013 8:22 pm

Hi everybody,

just getting the blues: I have a template, which should serve as example.
As the content areas is very wide, there are 3 special styles:
  • rightside
  • leftside
  • center
to have blocks of text more on the right or left side or in the center. Works well in ckeditor, but not in tinymce, as tiny applies the style as <span class="whatever">xxx</span>

What now? How to convince tiny to apply style as paragraph class? How to make ckeditor apply style as span?

svasti

Holger
Site Admin
Posts: 3470
Joined: Mon May 19, 2008 7:10 pm
Location: Hessen, Germany

Re: tinymce vs ckeditor style handling: <span> vs <p>

Post by Holger » Wed Feb 06, 2013 10:14 pm

Hi svasti,
svasti wrote:How to make ckeditor apply style as span?
you can define inline-styles in the editor-configuration:
http://docs.ckeditor.com/#!/guide/dev_styles

Holger

svasti
Posts: 1659
Joined: Wed Dec 17, 2008 5:08 pm

Re: tinymce vs ckeditor style handling: <span> vs <p>

Post by svasti » Wed Feb 06, 2013 10:37 pm

Sorry I forgot this...

and now I also found how to make tinymce apply paragraph classes: just click 3 times within a paragraph. This highlights the whole paragraph and tinymce will apply paragraph classes. Otherwise <span> classes will be applied to the highlighted words.

Post Reply