相关疑难解决方法(0)

CKEditor - 没有工具栏

所以,我得到了一个textareaCKEditor插件,但我只是希望它干净,没有任何东西.没有工具栏,没有状态或任何栏.这很简单,但我无法在文档或网络上找到它!

CKEditor的开头是:

$('#texto').ckeditor({skin:'office2003'});

javascript ckeditor

8
推荐指数
2
解决办法
1万
查看次数

如何在 CKEditor 内嵌中隐藏工具栏

我有一个需要内联 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)

ckeditor

2
推荐指数
1
解决办法
7363
查看次数

标签 统计

ckeditor ×2

javascript ×1