Bundling TinyMCE plugins using module loading
Overview
This section shows the files required for each TinyMCE plugin. The file paths shown are relative to the root TinyMCE package directory, where tinymce.min.js
is stored. For example:
./ ├── icons/ ├── langs/ ├── license.txt ├── models/ ├── plugins/ ├── readme.txt ├── skins/ ├── themes/ ├── tinymce.d.ts ├── tinymce.js ├── tinymce.min.js └── version.txt
The following table shows examples of the syntax used to bundle the following plugin.
Required files for an example plugin:
./plugins/example/content.js // or './plugins/example/content_css.js'
./plugins/example/plugin.js
Example syntax for including the example "plugin" in a bundle using content.js
or content_css.js
files for bundling:
Module Syntax | Source | Example |
---|---|---|
ES6+ |
npm |
|
|
|
|
Common JS |
npm |
|
|
|
Contents
The following premium plugins can not be bundled if the TinyMCE version is earlier than 6.8.0. However, if the TinyMCE version is equivalent to v6.8.0 or later, the following premium plugins can be bundled:
|
Premium plugins
Accessibility Checker (a11ychecker
)
The plugin language files (such as ./plugins/plugin/langs/sv_SE.js ) are required where the editor user interface is localized using the language option. Please refer to plugin-language-files
|
./plugins/a11ychecker/plugin.js
./plugins/a11ychecker/css/annotations.css // or
./plugins/a11ychecker/css/annotations.js // bundling requires v6.8.0 or later.
Advanced Code (advcode
)
./plugins/advcode/plugin.js
./plugins/advcode/codemirror.min.css //or
./plugins/advcode/codemirror_css.js // bundling requires v6.8.0 or later.
./plugins/advcode/codemirror.min.js
./plugins/advcode/customeditor.js
Advanced Tables (advtable
)
The plugin language files (such as ./plugins/plugin/langs/sv_SE.js ) are required where the editor user interface is localized using the language option. Please refer to plugin-language-files
|
./plugins/advtable/plugin.js
Comments (tinycomments
)
The plugin language files (such as ./plugins/plugin/langs/sv_SE.js ) are required where the editor user interface is localized using the language option. Please refer to plugin-language-files
|
./plugins/tinycomments/plugin.js
./plugins/tinycomments/css/tinycomments.css //or
./plugins/tinycomments/css/tinycomments.js // bundling requires v6.8.0 or later.
./plugins/tinycomments/js/tinycomments-sidebar.js
Enhanced Image Editing (editimage
)
The plugin language files (such as ./plugins/plugin/langs/sv_SE.js ) are required where the editor user interface is localized using the language option. Please refer to plugin-language-files
|
./plugins/editimage/plugin.js
Enhanced Media Embed (mediaembed
)
./plugins/mediaembed/plugin.js
./plugins/mediaembed/content.min.css //or
./plugins/mediaembed/content_css.js // bundling requires v6.8.0 or later.
Export (export
)
The plugin language files (such as ./plugins/plugin/langs/sv_SE.js ) are required where the editor user interface is localized using the language option. Please refer to plugin-language-files
|
./plugins/export/plugin.js
./plugins/export/exporters/clientpdf.js
Footnotes (footnotes
)
The plugin language files (such as ./plugins/plugin/langs/sv_SE.js ) are required where the editor user interface is localized using the language option. Please refer to plugin-language-files
|
./plugins/footnotes/plugin.js
Link Checker (linkchecker
)
./plugins/linkchecker/plugin.js
./plugins/linkchecker/content.min.css //or
./plugins/linkchecker/content_css.js // bundling requires v6.8.0 or later.
Mentions (mentions
)
./plugins/mentions/plugin.js
./plugins/mentions/css/mentions.css //or
./plugins/mentions/css/mentions.js // bundling requires v6.8.0 or later.
Merge Tags (mergetags
)
The plugin language files (such as ./plugins/plugin/langs/sv_SE.js ) are required where the editor user interface is localized using the language option. Please refer to plugin-language-files
|
./plugins/mergetags/plugin.js
Page Embed (pageembed
)
./plugins/pageembed/plugin.js
./plugins/pageembed/css/empa30.css //or
./plugins/pageembed/css/empa30.js // bundling requires v6.8.0 or later.
PowerPaste (powerpaste
)
The plugin language files (such as ./plugins/plugin/langs/sv_SE.js ) are required where the editor user interface is localized using the language option. Please refer to plugin-language-files
|
./plugins/powerpaste/plugin.js
./plugins/powerpaste/js/wordimport.js
Spell Checker Pro (tinymcespellchecker
)
The plugin language files (such as ./plugins/plugin/langs/sv_SE.js ) are required where the editor user interface is localized using the language option. Please refer to plugin-language-files
|
./plugins/tinymcespellchecker/plugin.js
Spelling Autocorrect (autocorrect
)
The plugin language files (such as ./plugins/plugin/langs/sv_SE.js ) are required where the editor user interface is localized using the language option. Please refer to plugin-language-files
|
./plugins/autocorrect/plugin.js
Table of Contents (tableofcontents
)
The plugin language files (such as ./plugins/plugin/langs/sv_SE.js ) are required where the editor user interface is localized using the language option. Please refer to plugin-language-files
|
./plugins/tableofcontents/plugin.js
Community plugins
Plugin language files
Replace <plugin-name> with the specific plugin name when adding the plugin language files to your config.
|
./plugins/<plugin-name>/langs/ar.js
./plugins/<plugin-name>/langs/bg_BG.js
./plugins/<plugin-name>/langs/ca.js
./plugins/<plugin-name>/langs/cs.js
./plugins/<plugin-name>/langs/da.js
./plugins/<plugin-name>/langs/de.js
./plugins/<plugin-name>/langs/el.js
./plugins/<plugin-name>/langs/es.js
./plugins/<plugin-name>/langs/eu.js
./plugins/<plugin-name>/langs/fa.js
./plugins/<plugin-name>/langs/fi.js
./plugins/<plugin-name>/langs/fr_FR.js
./plugins/<plugin-name>/langs/he_IL.js
./plugins/<plugin-name>/langs/hi.js
./plugins/<plugin-name>/langs/hr.js
./plugins/<plugin-name>/langs/hu_HU.js
./plugins/<plugin-name>/langs/id.js
./plugins/<plugin-name>/langs/it.js
./plugins/<plugin-name>/langs/ja.js
./plugins/<plugin-name>/langs/kk.js
./plugins/<plugin-name>/langs/ko_KR.js
./plugins/<plugin-name>/langs/ms.js
./plugins/<plugin-name>/langs/nb_NO.js
./plugins/<plugin-name>/langs/nl.js
./plugins/<plugin-name>/langs/pl.js
./plugins/<plugin-name>/langs/pt_BR.js
./plugins/<plugin-name>/langs/pt_PT.js
./plugins/<plugin-name>/langs/ro.js
./plugins/<plugin-name>/langs/ru.js
./plugins/<plugin-name>/langs/sk.js
./plugins/<plugin-name>/langs/sl_SI.js
./plugins/<plugin-name>/langs/sv_SE.js
./plugins/<plugin-name>/langs/th_TH.js
./plugins/<plugin-name>/langs/tr.js
./plugins/<plugin-name>/langs/uk.js
./plugins/<plugin-name>/langs/vi.js
./plugins/<plugin-name>/langs/zh_CN.js
./plugins/<plugin-name>/langs/zh_TW.js