I have two questions:
-
I’m trying to had a button like this :
buttons: buttons, buttonsCustom: { sh: { title: 'Syntax Highlighter', callback: function(){ var html = "<pre class='brush:'></pre>"; this.execCommand('inserthtml', html); } } }My button appears but when i click on it, it say that “this” hasn’t an “execCommand” function. How does it work ? How can i say that “this” is Redactor ?
You know what i mean ? -
Is it possible to create a dropdown list ?
I fixed it by myself: