Opened 10 years ago
Closed 10 years ago
#33264 closed defect (bug) (fixed)
WPLinkPreview only works in the first editor instance
Reported by: | iseulde | Owned by: | iseulde |
---|---|---|---|
Milestone: | 4.3 | Priority: | normal |
Severity: | normal | Version: | 4.3 |
Component: | TinyMCE | Keywords: | has-patch commit |
Focuses: | Cc: |
Description
It should be set up outside the plugin callback, and each editor should have its own postrender callback.
Attachments (1)
Change History (9)
#2
@
10 years ago
Above patch uses the editor.addButton method instead. With that we can add some editor specific settings like onPostRender.
This ticket was mentioned in Slack in #core-editor by iseulde. View the logs.
10 years ago
This ticket was mentioned in Slack in #core by azaozz. View the logs.
10 years ago
#7
@
10 years ago
33264.patch looks good and works with three editors on one page.
Note: See
TracTickets for help on using
tickets.
Here's a patch that also fixes some other issues, but probably better to do this in steps.
https://core.trac.wordpress.org/attachment/ticket/32604/32604.15.patch
Todo: Relative URLs should be corrected.