Optimize javascript code disable my must use plugin
-
Hi
I have a must use plugin for displaying tinymce in comments. This single file plugin contains the php code and a little piece of javascript, the problem is autoptimize disable my plugin when “optimize javascript cod” is enabled. I tried all the options in this panel with no better luck so i thought i could exclude this piece of javascript but it seems i can only exclude a javascript file (and it’s within the php). Hope you can help me. Thank you
Javascript code is :
<script type="text/javascript"> jQuery(function($){ $('.comment-reply-link').click(function(e){ e.preventDefault(); var args = $(this).data('onclick'); args = args.replace(/.*\(|\)/gi, '').replace(/\"|\s+/g, ''); args = args.split(','); tinymce.EditorManager.execCommand('mceRemoveEditor', true, 'comment'); addComment.moveForm.apply( addComment, args ); tinymce.EditorManager.execCommand('mceAddEditor', true, 'comment'); }); }); </script>
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Optimize javascript code disable my must use plugin’ is closed to new replies.