Skip to content

Latest commit

 

History

History
73 lines (52 loc) · 1.73 KB

File metadata and controls

73 lines (52 loc) · 1.73 KB

Help plugin

The help plugin adds a button and/or menu item that opens a dialog showing two tabs:

  • Handy shortcuts that explain some nice-to-know keyboard shortcuts

  • Plugin list that shows which plugins that have been installed, with links to the relevant documentation pages if available, and a list of available premium plugins.

In the footer of the dialog you can also see which version of {productname} you are using.

The help dialog can also be shown by pressing the keyboard shortcut Alt + 0.

Basic setup

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

API

Name Arguments Description

addTab

tabSpec: TabPanel

Register a tab for the Help dialog

Example: Using the addTab API

tinymce.activeEditor.plugins.help.addTab({
  name: 'custom',
  title: 'My Custom Tab',
  items: [
    {
      type: 'htmlpanel',
      html: '<p>This is a custom tab</p>',
    }
  ]
});

Exposing metadata for the help plugin

For information on how to expose metadata from you custom plugin to add it to the Installed plugins list in the Help plugin, see the Creating a Plugin page.

Commands

The Help plugin provides the following JavaScript command.