CKeditor 5如何处理CKeditor 4';s";writer.setRules";?
在CKEditor 4中,我使用此rewrite命令来防止在每个保存过程的CKeditor 5如何处理CKeditor 4';s";writer.setRules";?,ckeditor,ckeditor5,Ckeditor,Ckeditor5,在CKEditor 4中,我使用此rewrite命令来防止在每个保存过程的之后添加空格: this.instance = CKEDITOR.replace( this.id, { on: { instanceReady: function( ev ) { // Suppress the adding of white-space to soft breaks on each save. this.dataProcessor.writer.s
之后添加空格:
this.instance = CKEDITOR.replace(
this.id, {
on: {
instanceReady: function( ev ) {
// Suppress the adding of white-space to soft breaks on each save.
this.dataProcessor.writer.setRules( 'br', {
indent: false,
breakBeforeOpen: false, // instead of "true"
breakAfterOpen: false,
breakBeforeClose: false,
breakAfterClose: false // instead of "true"
});
}
},
[...]
我现在需要切换到CKEditor5,但无法了解它如何处理这种情况。有一种方法,但它不提供“setRules”方法。还有一个类,与v4相比似乎减少了很多
此外,搜索“输出”和“HTML格式”(CKEditor 4的关键字在其中查找有关如何处理这些功能的信息)不会产生任何结果
CKEditor 5到底以什么方式提供了这样的配置功能(“设置规则”)?没有人知道吗?CKeditor团队-您介意介入并提供帮助吗?非常感谢!非常感谢。