Support » Plugin: Pods - Custom Content Types and Fields » Integrating TinyMCE-Templates on pod pages

  • Resolved dianaperkins


    I am trying to integrate the template feature of TinyMCE-Templates which I have working perfectly in wp-admin pods.. however when I push a TinyMCE field out to a pod Page it will not spit out the proper JavaScript and just prints out the basic TinyMCE JavaScript.

    How do I get pods to override the existing code output with the new JavaScript like it does from with in the editor? Does it have something to do with this code in pods/classes/fields/wysiwyg.php:

    if ( 'tinymce' == pods_var( 'wysiwyg_editor', $options ) )
                $field_type = 'tinymce';
            elseif ( 'cleditor' == pods_var( 'wysiwyg_editor', $options ) )
                $field_type = 'cleditor';
            else {
                // Support custom WYSIWYG integration
                do_action( 'pods_form_ui_field_wysiwyg_' . pods_var( 'wysiwyg_editor', $options ), $name, $value, $options, $pod, $id );
                do_action( 'pods_form_ui_field_wysiwyg', pods_var( 'wysiwyg_editor', $options ), $name, $value, $options, $pod, $id );


Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Scott Kingsley Clark


    I don’t think the TinyMCE Templates plugin works with Pods forms on the front of the site. I saw you posted a forum post over in their plugin support area, just let them know that we’re willing to integrate if they’re interested.

    Figured I’d post the solution to this here in case any of your users have the same integration issues with TinyMCE-Templates and Pods:

    I added this code to the end of the __construct() function in tinymce-templates/tinymce-templates.php:

    add_action('wp_head', array(&$this, 'admin_head'));
    add_action('wp_footer', array(&$this, 'admin_footer'));
    Plugin Author Scott Kingsley Clark


    Can you notify the developer of that plugin to ensure they make this adjustment to allow front-end TinyMCE integration?

    Surely. 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Integrating TinyMCE-Templates on pod pages’ is closed to new replies.