scyberia
Member
Posted 3 months ago #
Hi all,
I made a plugin for WP that includes a really basic TinyMCE plugin.
I already have an options panel for the plugin, but it only works with the PHP part of the plugin - I want to integrate WP options into the JS/TMCE part.
How would I do this? I can't use get_option because that's for PHP only...
THANKS IN ADVANCE
kitchin
Member
Posted 3 months ago #
Try AJAX, http://codex.wordpress.org/AJAX_in_Plugins
The hooks are a bit wanky, but it should work.
scyberia
Member
Posted 3 months ago #
I don't have any idea what AJAX is, but I can check it out.
What if I put the TinyMCE plugin's JS code in a PHP file and echo the options?
I briefly tried it (without the options) on my blog and it worked.
Thanks for the help.
kitchin
Member
Posted 3 months ago #