Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create TinyMCE command for adding media
The "add media" dialog appears after clicking on the "add media" icon in the TinyMCE toolbar. Previously, this occurred as a direct result of the `onclick` handler in `editor.addButton()`. Because this meant that adding media was dependent on clicking the button, it prevented being able to do so in other ways, such as is the goal in #5071 This patch moves the code to cause the media dialog to appear into a new command, which the button then calls when it's clicked.
- Loading branch information