Ckeditor默认文本(占位符)在DivArea中不起作用

时间:2019-07-18 08:03:45

标签: javascript php ckeditor ckeditor4.x

我使用CKeditor作为我的文本编辑器,似乎confighelper插件添加的默认文本(占位符)不适用于divArea插件。

当我删除divArea插件时,默认文本起作用。 其他信息是我正在使用vuejs对其进行集成

我已经集成了默认文本(占位符)及其工作原理,但是我需要使用divArea,因为我需要使用占位符插件并且我对其进行了一些配置

这是我的配置

config: {
    toolbar: [
              [ 'Bold', 'Italic', 'Underline', 'NumberedList', 'BulletedList', 'Undo','Redo','liststyle','tabletools','Scayt','contextmenu','menubutton','CreatePlaceholder'],
            ],
            height: 300,
            extraPlugins: ['confighelper','basicstyles','placeholder','widget','dialog','divarea','undo'],
            allowedContent: true,
            resize_enabled: false,
            scayt_autoStartup: true,
            forcePasteAsPlainText:true,
              placeholder: 'Write your duties, tasks, and achievements on this jobasd here. You may also use our suggestions by clicking the "+" button.'
     }

0 个答案:

没有答案
相关问题