[wp-trac] [WordPress Trac] #16284: Remove the wpdialog plugin from TinyMCE

WordPress Trac noreply at wordpress.org
Thu Mar 20 18:19:31 UTC 2014


#16284: Remove the wpdialog plugin from TinyMCE
-------------------------+---------------------
 Reporter:  azaozz       |       Owner:  azaozz
     Type:  enhancement  |      Status:  closed
 Priority:  high         |   Milestone:  3.9
Component:  Editor       |     Version:  3.1
 Severity:  normal       |  Resolution:  fixed
 Keywords:  close        |     Focuses:
-------------------------+---------------------

Comment (by harmr):

 Are there any tutorial available what to use instead? my plugin adds a
 button which opens a search window for maps. Till now this has be done
 with wpdialog(). Now I tried to change this to

 {{{
 $(document).on('click', '#upload-new-icon', function(){
      tinyMCE.get()[0].windowManager.open({
            title: "<?php esc_attr_e('Upload new icon','lmm'); ?>",
            url: "<?php echo LEAFLET_PLUGIN_URL . 'inc/icon-
 upload.php?_wpnonceicon=' . $noncelink_uploadicon; ?>",
            width: 450,
            height: 120,
            inline: 1,
      });
 )};
 }}}

 which works fine if visual editor is used. Anyway if visual editor is
 disabled, this approach fails.
 Any help would be really appreciated!
 thx,
 Robert

--
Ticket URL: <https://core.trac.wordpress.org/ticket/16284#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list