Pet*_*leg 5 javascript jquery user-interface tinymce class
我有一个网页,其中我结合使用jQuery UI和tinyMCE.我添加了一个自定义按钮,打算使用此按钮拖动可拖动的文本字段:
代码:
editor.addButton('drag', {
text: 'Drag',
icon: false,
onclick: function() {
// somehow add the class '.handle' to the drag button
}
});
}
Run Code Online (Sandbox Code Playgroud)
我可以在自定义的tinyMCE拖动按钮中添加一个".handle"类吗?或者这是不可能的.