0
我正在插入CKEditor。我如何獲得使用textarea的當前ID?我需要像CKEditor插件 - 當前textarea的ID
var stringId = CKEDITOR.this.textarea.id;
我在一個頁面上使用更多textarea與使用CKEditor。每個人都有不同的ID。
我正在插入CKEditor。我如何獲得使用textarea的當前ID?我需要像CKEditor插件 - 當前textarea的ID
var stringId = CKEDITOR.this.textarea.id;
我在一個頁面上使用更多textarea與使用CKEditor。每個人都有不同的ID。
不合邏輯它被稱爲名
CKEDITOR.plugins.add('namePlugin', {
editor.addCommand("namePlugin", {
exec: function() {
alert(editor.name);
}
});
}
});
方法