Turn off enclosing

tags in CKEditor 3.0

前端 未结 11 993
天涯浪人
天涯浪人 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:19

    CKEDITOR.config.enterMode = CKEDITOR.ENTER_BR; - this works perfectly for me. Have you tried clearing your browser cache - this is an issue sometimes.
    You can also check it out with the jQuery adapter:

    
    
    
    


    UPDATE according to @Tomkay's comment:

    Since version 3.6 of CKEditor you can configure if you want inline content to be automatically wrapped with tags like

    . This is the correct setting:

    CKEDITOR.config.autoParagraph = false;
    

    Source: http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.config.html#.autoParagraph

提交回复
热议问题