问题是这样的,用kindeditor文本编辑器,代码如下:
editor = K.create('textarea[id="content"]', {
resizeType : 1,
allowPreviewEmoticons : false,
allowImageUpload : false,
items : [
'mathtype']
});
mathtype是我自定义的一个组件,当我点击mathtype这个,执行到mathtype.js,里面的代码如下:
KindEditor.plugin('mathtype', function(K) {
var self = this, name = 'mathtype';
self.clickToolbar(name, function() {
/**这里执行jquery代码,获取textarea的id**/
});
});
我想在上边的代码中,获取textarea的id,然后进行一些操作。但是不知道KE有没有提供什么方法能简单的获取吗,请各位大神指点一下,谢谢啦。