#36977 closed defect (bug) (fixed)
TinyMCE: error when "media" is not loaded
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 4.6 | Priority: | normal |
| Severity: | normal | Version: | |
| Component: | TinyMCE | Keywords: | |
| Focuses: | Cc: |
Description
When the TinyMCE 'wpview' plugin is loaded (default), and the rest of the media scripts are not, and another script uses the namespace wp.mce, there is an error Cannot read property * of undefined....
Change History (4)
This ticket was mentioned in Slack in #core-editor by azaozz. View the logs.
10 years ago
#3
@
10 years ago
- Owner set to azaozz
- Resolution set to fixed
- Status changed from new to closed
In 37597:
#4
@
10 years ago
What would be the effect of a noop view?
I still get an error with this patched into the latest stable, but the wp_editor loads the content. I'm more concerned that this only deals with part of a larger issue, which is that there are situations where built-in functionality doesn't operate or conflicts with other Automattic plugins, like Jetpack
Note: See
TracTickets for help on using
tickets.
Happens because we don't check for the existence of
wp.mce.viewsin the TinyMCE plugin, only forwp.mce.