Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
01-04-2013, 09:37 PM #1
- Join Date
- Aug 2002
- Thanked 0 Times in 0 Posts
How to call custom method in this plugin example
I'm using the jQuery based WYSIWYG editor Redactor and in trying to follow along with their simple docs, how would you call the method 'your_method' in their example here?
They don't have an example. All I want to do is put a button on the page and then when that button is clicked, trigger off my own custom method.
I'm sure this is an easy one for any experience JS coder. Insight appreciated!
01-07-2013, 01:41 PM #2
Give that initializer function a name and then call it:
plugins: ['fullscreen', 'advanced']
<button onClick="yourFunctionName()">CLICK ME TO INTIALIZE</button>