Added support for initializing editor as jQuery plugin to allow for extending the editor