Ckeditor5 如何在Ckeditor 5上添加“allowContent”

Ckeditor5 如何在Ckeditor 5上添加“allowContent”,ckeditor5,Ckeditor5,伙计们,我找不到任何关于如何将allowContent添加到编辑器的建议,我的问题是当我想在保存HTML属性后设置highlight或对文本进行其他更改时,不能将其作为HTML代码启动 ClassicEditor.create( document.querySelector( '.editor' ), { toolbar: { items: [ 'fontBackgroundColor',

伙计们,我找不到任何关于如何将
allowContent
添加到编辑器的建议,我的问题是当我想在保存
HTML
属性后设置
highlight
或对文本进行其他更改时,不能将其作为HTML代码启动

ClassicEditor.create( document.querySelector( '.editor' ), {
            toolbar: {
                items: [
                    'fontBackgroundColor',
                    'highlight',
                    '|',
                    'fontColor',
                    'fontSize',
                    'fontFamily'
                ]
            },
            language: 'en',
            table: {
                contentToolbar: [
                    'tableColumn',
                    'tableRow',
                    'mergeTableCells',
                    'tableCellProperties',
                    'tableProperties'
                ]
            }
            
        })
        .then( editor => {
            window.editor = editor;
            editor.config.set('allowedContent', '*(*)'); //i tried this but nothing happens
        } )
        .catch( error => {
        });
例如,它返回:
这些合同的目的
而不是
这些合同的目的