The MU forums have moved to WordPress.org

tinyMCE (2 posts)

  1. SteveAtty
    Member
    Posted 15 years ago #

    Anyone having any weird problems with any code that interacts with tinyMCE in 1.5.1.

    I've got some code that inserts into the editor and then calls tinyMCE.activeEditor.repaint(); (which is the 3.0 API call)

    but firebug complains that "tinyMCE.activeEditor is null"

  2. SteveAtty
    Member
    Posted 15 years ago #

    OK -looks like a lot changed in TinyMCE.

    I used to have

    tinyMCE.execInstanceCommand('mce_editor_0', 'mceInsertContent', false, '[['+ tagcode + tag + '|' + code_id +  ']]' + ' ');
                            tinyMCE.selectedInstance.repaint();
                            return;

    and now I have

    tinyMCE.execCommand('mceInsertContent', false, '[['+ tagcode + tag + '|' + code_id +  ']]' + ' ');
                            tinyMCE.execCommand('mceRepaint');
                            return;

    And I needed to drop a DEFER into my javascript call.

About this Topic

  • Started 15 years ago by SteveAtty
  • Latest reply from SteveAtty