ckEditor:如何防止HTML实体编码全页模式?

ckEditor:如何防止HTML实体编码全页模式?,ckeditor,Ckeditor,在我的ckEditor配置中,我设置了: entities: false, basicEntities: false, entities_greek: false, entities_latin: false, allowedContent: true 以尽可能防止实体转换。除非我还启用了 fullPage: true 如果fullPage设置为true,则基本实体将再次作为实体插入,这将破坏我的整个设置。(我想编辑mustache/handlebar模板,部分表示法使用“>”:{{>par

在我的ckEditor配置中,我设置了:

entities: false,
basicEntities: false,
entities_greek: false,
entities_latin: false,
allowedContent: true
以尽可能防止实体转换。除非我还启用了

fullPage: true
如果fullPage设置为true,则基本实体将再次作为实体插入,这将破坏我的整个设置。(我想编辑mustache/handlebar模板,部分表示法使用“>”:{{>partial}-->{{{partial}}。)


有没有办法阻止在完整页面模式下转换html实体?

好的,发现了如何通过htmlFilter添加异常:

ck.on('instanceReady', function() {
  this.dataProcessor.htmlFilter.addRules( {
    "text": function( text ) {
      return text.replace( /\{\{\s*\>/, "{{>"
    }   
} );