diff --git a/lib/tinymce/jscripts/tiny_mce/plugins/ice/editor_plugin.js b/lib/tinymce/jscripts/tiny_mce/plugins/ice/editor_plugin.js index f44f9ead..c1276bc5 100644 --- a/lib/tinymce/jscripts/tiny_mce/plugins/ice/editor_plugin.js +++ b/lib/tinymce/jscripts/tiny_mce/plugins/ice/editor_plugin.js @@ -120,6 +120,14 @@ }, 500); }); + /** + * Returns reference to internal ice instance for external manipulation. + * @return internal IceChangeEditor instance + */ + ed.addCommand('ice_getinstance', function() { + return changeEditor; + }); + /** * Re-initializes ice's environment - resets the environment variables for the current page * and re-initializes the internal ice range. This is useful after tinymce hides/switches