CKEditor 插件 - 当前文本区域的 id
CKEditor plugin - id of current textarea
我正在为 CKEditor 制作插件。如何获取当前使用 textarea 的 ID?我需要类似
的东西
var stringId = CKEDITOR.this.textarea.id;
我在一页上使用 CKEditor 使用了更多的文本区域。每个都有不同的ID。
不合逻辑的是名为name的方法
CKEDITOR.plugins.add('namePlugin', {
editor.addCommand("namePlugin", {
exec: function () {
alert(editor.name);
}
});
}
});
我正在为 CKEditor 制作插件。如何获取当前使用 textarea 的 ID?我需要类似
的东西var stringId = CKEDITOR.this.textarea.id;
我在一页上使用 CKEditor 使用了更多的文本区域。每个都有不同的ID。
不合逻辑的是名为name的方法
CKEDITOR.plugins.add('namePlugin', {
editor.addCommand("namePlugin", {
exec: function () {
alert(editor.name);
}
});
}
});