Skip to content

Latest commit

 

History

History
55 lines (34 loc) · 1.94 KB

File metadata and controls

55 lines (34 loc) · 1.94 KB

Media plugin

The media plugin provides users with the ability to add HTML5 video and audio elements to the editable area.

It also adds the Insert/edit video menu item under the Insert menu and adds an Insert/edit video toolbar button.

Basic setup

tinymce.init({
  selector: 'textarea',  // change this value according to your HTML
  plugins: 'media',
  toolbar: 'media'
});

Options

These options affect the execution of the media plugin, making it possible to disable parts of the media dialog made available to an end-user inserting or editing media items.

In addition there are options here for disabling the cross-site scripting (XSS) sanitation filter. This filter is enabled by default for the media plugin.

Commands

The Media plugin provides the following {productname} command.