Sivakrishna Donepudi
Sivakrishna Donepudi

Reputation: 372

CKEditor Content rendering customization

Is it possible to customize CKEditor content rendering?

Instead of rendering text as combination of p , span tags, we want to render in our customer format.

Is this possible through using CKEditor ? If yes, please let me know.

Upvotes: 0

Views: 980

Answers (2)

EpokK
EpokK

Reputation: 38092

Yes it's possible, there are several solutions:

  • You can change CSS like this :

    config.contentsCss = '/css/global.css';

http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-contentsCss

  • Use dataProcessor
  • Change the enterMode

http://docs.ckeditor.com/#!/api/CKEDITOR.filter-property-enterMode

See the documentation : http://docs.ckeditor.com/#!/guide/dev_styles

Upvotes: 3

oleq
oleq

Reputation: 15895

Yes. This is possible. The existing implementation that you can refer to is the official BBCode plugin.

Upvotes: 0

Related Questions