所以,我得到了一个textarea与CKEditor插件,但我只是希望它干净,没有任何东西.没有工具栏,没有状态或任何栏.这很简单,但我无法在文档或网络上找到它!
我CKEditor的开头是:
$('#texto').ckeditor({skin:'office2003'});
我有一个需要内联 CKEditor 但没有工具栏的应用程序。对于内联 CKEditor 部分,我有:
CKEDITOR.disableAutoInline = true;
var editor = CKEDITOR.inline('editable', {on: {
instanceReady: function() {periodic();}
}});
var periodic = (function() {
var data, oldData;
return function() {
if ((data = editor.getData()) !== oldData) {
oldData = data;
$.post("update.php", {txt:data});
}
setTimeout(periodic, 1000);
};
})();
Run Code Online (Sandbox Code Playgroud)
然后对于工具栏隐藏部分我发现了这个:CKEditor 4 Inline: How to hidetoolbar ondemand?
//Whenever CKEditor loses focus, We will hide the corresponding toolbar DIV.
function hideToolBarDiv(event) {
// Select the correct toolbar DIV and hide it.
//'event.editor.name' returns the …Run Code Online (Sandbox Code Playgroud)