ckeditor options

ckeditor options

crush123crush123 Posts: 417Questions: 126Answers: 18
edited January 2016 in Editor

I am using ckeditor plugin within editor, but for a particular instance of it, i do not want to wrap the content in <paragraph> tags, which it does by default.

is there a way of setting this ie config.autoParagraph = false; on a specific instance ?

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 61,824Questions: 1Answers: 10,131 Site admin

    Currently no the existing plug-in. It looks like it would need an extra option which would be passed into CKEditor. It looks like you could add a second parameter into the CKEDITOR.replace() call which would give the required options (from quickly scanning the CKEditor documentation).

    Allan

  • allanallan Posts: 61,824Questions: 1Answers: 10,131 Site admin
    Answer ✓

    Adding:

    CKEDITOR.replace( id, conf.opts );
    

    will do it. opts is undefined by default, so you could then just add the options object with parameter that match the CKEditor documentation. I'll include that in the next site update for that plug-in. Thanks for flagging it up.

    Allan

  • crush123crush123 Posts: 417Questions: 126Answers: 18

    Cheers for the fast response allan.

This discussion has been closed.