diff --git a/markitup/jquery.markitup.js b/markitup/jquery.markitup.js index 9f48bdd..4707251 100644 --- a/markitup/jquery.markitup.js +++ b/markitup/jquery.markitup.js @@ -477,7 +477,7 @@ renderPreview(); } - function renderPreview() { + function renderPreview() { var phtml; if (options.previewParser && typeof options.previewParser === 'function') { var data = options.previewParser( $$.val() ); @@ -571,6 +571,10 @@ } } + $.fn.markItUpExec = function(myfunc) { + eval(myfunc + "()"); + } + init(); }); }; @@ -595,4 +599,5 @@ $('textarea').trigger('insertion', [options]); } }; + })(jQuery);