[wp-hackers] WordPress TinyMCE plugin: preferred method for including jQuery

BjornW burobjorn at gmail.com
Thu Sep 13 11:45:37 UTC 2012


Hi,

I'm currently including jQuery into a custom TinyMCE plugin by referring
to the wp-includes/js/jquery.js path

This path is hardcoded and looks like:

<script type="text/javascript"
src="../../../../../../wp-includes/js/jquery/jquery.js"></script>

I would prefer a method a bit more future proof.

Any hints on how you guys include jQuery in a TinyMCE plugin which
displays a popup (similar to WordPress' Links popup).

Thanks,

grtz
BjornW


More information about the wp-hackers mailing list