Turn off enclosing

tags in CKEditor 3.0

前端 未结 11 1001
天涯浪人
天涯浪人 2020-12-04 07:49

Is there a possibility to turn off the automatic enclosing of all written content within

in CKEditor 3.x?

I tried

  CKEDITOR.con         


        
11条回答
  •  爱一瞬间的悲伤
    2020-12-04 08:18

    MAKE THIS YOUR config.js file code

    CKEDITOR.editorConfig = function( config ) {
    
       //   config.enterMode = 2; //disabled 

    completely config.enterMode = CKEDITOR.ENTER_BR // pressing the ENTER KEY input
    config.shiftEnterMode = CKEDITOR.ENTER_P; //pressing the SHIFT + ENTER KEYS input

    config.autoParagraph = false; // stops automatic insertion of

    on focus };

提交回复
热议问题