0
我使用Ckeditor的共享空間插件爲多個ckeditor加載共享工具欄,但它仍然爲所有編輯器加載單獨的工具欄。Ckeditor - 共享工具欄不起作用
這裏是代碼中的小提琴,我現在用:https://jsfiddle.net/7Lrcup3L/
HTML:
<div id="topSpace"></div>
<textarea id="editor1" name="editor1"></textarea>
<textarea id="editor2" name="editor2"></textarea>
<div id="bottomSpace"></div>
JS:
CKEDITOR.replace('editor1',{
sharedSpaces: {
top: 'topSpace',
bottom: 'bottomSpace'
}
})
CKEDITOR.replace('editor2',{
sharedSpaces: {
top: 'topSpace',
bottom: 'bottomSpace'
}
})
需要用同樣的幫助!