[wp-trac] [WordPress Trac] #16284: Remove the wpdialog plugin from TinyMCE
WordPress Trac
noreply at wordpress.org
Sat Mar 22 23:10:23 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 azaozz):
The purpose of 'wpdialog' was to make it possible to use the native
TinyMCE 3.x dialogs API with inline HTML (it supports only iframes). In
TinyMCE 4.0 that API was updated to support inline and dynamically created
HTML, so the functionality of the 'wpdialog' plugin is no longer needed.
Generally you can use any code to create a modal dialog. If you want your
modals to be draggable and resizable (but not responsive) you can continue
using UI dialog. There is no requirement to use the TinyMCE API for
creating modals. This is very handy when you want your modal to be
available in both the Visual and Text editors.
The button added to the TinyMCE toolbar can call any JS and you can pass
the editor instance (or just the editor ID) and use the TinyMCE APIs
there. Have a look at the current wplink.js.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/16284#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list