I have a a webpage in which i use jQuery UI and tinyMCE in combination. I have added a custom button with the intention to use this button to drag a draggeble textfield:
the code:
editor.addButton('drag', {
text: 'Drag',
icon: false,
onclick: function() {
// somehow add the class '.handle' to the drag button
}
});
}
Can i add a class ".handle" to the custom tinyMCE drag button? or is this not posible.
You can add a subtype
property to the settings.
That will append a class with the name mce-[subtype]
.
Refer to this codepen
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With