Hi there. I altered the autogrow-plugin so the bug where the instance loses focus in Safari when the editor resizes and added an animation to the resizing. I need to trigger the resizing from 'outside' the editor while passing it a parameter (the duration of the resize-animation). Now I was wondering if it's a good, clean way to just add a public method to where the init-method is defined so I can call
my_editor_instance.plugins.my_autogrow.resize();
or if there is another, right way to do this.
Thanks in advance
Luke
my_editor_instance.plugins.my_autogrow.resize();
or if there is another, right way to do this.
Thanks in advance
Luke
Re: Is adding methods to a plugin's API a "good" way?
I wouldn't consider it a bad practice when developing plugins to have these public methods. jQuery plugins often operate in a very similar fashion. We've just been enabling autogrow and found the Safari bug, would you be able to share the fix?