Pods - Custom Content Types and Fields
[resolved] Integrating TinyMCE-Templates on pod pages (5 posts)

  1. dianaperkins
    Posted 3 years ago #

    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 );



  2. Scott Kingsley Clark
    Plugin Author

    Posted 3 years ago #

    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.

  3. dianaperkins
    Posted 3 years ago #

    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'));
  4. Scott Kingsley Clark
    Plugin Author

    Posted 3 years ago #

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

  5. dianaperkins
    Posted 3 years ago #

    Surely. :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic


No tags yet.