WordPress.org

Forums

Scissors Continued
edCanvas is not defined (3 posts)

  1. sabinevi
    Member
    Posted 4 years ago #

    getting a javascript error 'edCanvas is not defined' in wp-admin/load-scripts.php in function send_to_editor on the last line.
    Pity!

  2. Geet Jacobs
    Member
    Posted 3 years ago #

    likely the plugin developer needs to add a javascript hook kind of like the below.

    Replacing 'group-desc' with which ever text area ID it is.

    function add_edCanvas() {
    echo '<script type="text/javascript">
    jQuery(document).ready(function(){
    edCanvas = document.getElementById("group-desc"); });
    </script>
    ';
    }
    add_action('wp_head', 'add_edCanvas');

  3. fireproofsocks
    Member
    Posted 3 years ago #

    Ugh, WP's integration of this is truly bad. This fails if your plugin uses 2 (or more) TinyMCE instances.

    This is the best reference I've found for this, but it's still incomplete for some scenarios:
    http://dannyvankooten.com/450/tinymce-wysiwyg-editor-in-wordpress-plugin/

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Scissors Continued
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic