-->

如何删除“标题”属性的CKEditor的4联编辑自动添加?(How to remove the “t

2019-11-01 13:56发布

当一个物体上使用CKEditor的4行内编辑的CKEditor的添加一个“标题”的属性,包括文本和对象ID。

例如,在CKEditor的直列例子中,我们可以看到未来的代码:

<h2 id="inline-sampleTitle" title="Rich Text Editor, inline-sampleTitle"....>CKEditor<br>Goes Inline!</h2>

我要删除“标题”属性,因为我不喜欢的用户可以看到它(我的ID是更复杂的:))。

注:我尝试后,CKEditor的创建使用jQuery“removeAttr”功能键,手动删除,但这个解决方案是不是真的对我很好,因为在IE浏览器的用户仍然可以看到它在第一时间,它会在用户后才取出鼠标移出从对象。

Answer 1:

CKEDITOR.config.title = FALSE;

有关详细信息,请访问该



Answer 2:

你可以在这里找到一些细节: 如何更改标题的CKEditor集内联实例?

不幸的是,你不能在不修改代码的更改。 我报机票为此http://dev.ckeditor.com/ticket/10042



Answer 3:

见https://stackoverflow.com/a/15270613/2148773 -看起来你可以手动设置编辑元素的“title”属性来覆盖提示。



Answer 4:

在你的配置

CKEDITOR.editorConfig = function( config ) {
    // Define changes to default configuration here.
    // For the complete reference:
    // http://docs.ckeditor.com/#!/api/CKEDITOR.config
    config.title="";
}


Answer 5:

CKEditor的修复4.2版本,所以我们现在可以:)删除此修复http://dev.ckeditor.com/ticket/10042



Answer 6:

你可以把CKEditor的配置对象编辑器功能初始化后,将删除标题:

on: {       
        instanceReady: function(event){
            $(event.editor.element.$).attr('title','');
        },
},


Answer 7:

您可以以删除每个CKEDITOR标题,将创建使用此代码。

CKEDITOR.on('instanceReady',function(event){$(event.editor.element.$).attr('title','');});


Answer 8:

我在笨视图页面尝试这样做,它为我工作。 此外,我用我自己的自定义工具提示为我的用户。

CKEDITOR.inline( 'ckeditor' );
CKEDITOR.config.title = false; // or you can use own custom tooltip message.


谢谢
布拉汉姆开发亚达夫



Answer 9:

我已经尝试使用

CKEDITOR.config.title = false;

但它仍然存在显示标题。

经过一番研究,我做的是:

1.Go到〜/ CKEditor的/郎/ EN-gb.js除去了 'editorHelp' 值

2.Assign语言和标题,下同:

CKEDITOR.editorConfig = function( config ) {
config.language="en-gb";
config.title="Put your title here"; //cannot put blank, it will display "null"


文章来源: How to remove the “title” attribute that the CKEditor 4 add automatically on inline editing?