WordPress.org

Ready to get started?Download WordPress

Forums

Include WP Options in TinyMCE Plugin (4 posts)

  1. scyberia
    Member
    Posted 2 years 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

  2. kitchin
    Member
    Posted 2 years ago #

    Try AJAX, http://codex.wordpress.org/AJAX_in_Plugins
    The hooks are a bit wanky, but it should work.

  3. scyberia
    Member
    Posted 2 years 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.

  4. kitchin
    Member
    Posted 2 years ago #

    Yes, that is better.

Topic Closed

This topic has been closed to new replies.

About this Topic