Templates logo

Templates plugin

Insert templates from predefined gallery
Templates screenshot
Templates screenshot
Templates logo

TinyMCE Templates is a plugin for very quick and simple inserting templates into your document. The plugins has set of predefined templates.

TinyMCE Templates can be shown as popup or as dialog.

TinyMCE 5 logoTinyMCE 5  plugin
TinyMCE 4 logoTinyMCE 4  plugin
CKEditor 4 logoCKEditor 4  plugin

Install Templates plugin in TinyMCE 5

Download Templates
ZIP archive of Templates for TinyMCE 5
Self-hosted TinyMCE 5
Cloud TinyMCE 5

Install the plugin to TinyMCE 5 hosted on your server

  1. Copy Templates directory to tinymce/plugins/.
  2. Edit TinyMCE config and add Templates to plugins parameter.

Example

Here you can see sample TinyMCE initialization code with config inside it:

TinyMCE.init({
    selector: "#editor",
    plugins: "Templates",
});

Refer to TinyMCE add-ons installation manual for more details

Install the plugin to cloud edition of TinyMCE 5

  1. Copy Templates directory somewhere on your server where it can be accessible by a link.
  2. Specify the location of just copied Templates plugin adding key-value pair in external_plugins TinyMCE config parameter.
  3. Edit TinyMCE config and add Templates to plugins parameter.

Example

Here you can see sample cloud TinyMCE initialization code with config inside it:

TinyMCE.init({
    selector: "#editor",
    external_plugins: {
        "Templates": "http://example.com/public/Templates/plugin.min.js",
    },
    plugins: "Templates",
});

Refer to TinyMCE add-ons installation manual for more details

Install Templates plugin in TinyMCE 4

Download Templates
ZIP archive of Templates for TinyMCE 4

Then do these simple steps:

  1. Copy Templates directory to tinymce/plugins/.
  2. Edit TinyMCE config and add Templates to plugins parameter.

Example

Here you can see sample TinyMCE initialization code with config inside it:

TinyMCE.init({
    selector: "#editor",
    plugins: "Templates",
});

Refer to TinyMCE add-ons installation manual for more details

Install Templates plugin in CKEditor 4

Download Templates
ZIP archive of Templates for CKEditor 4

Then do these simple steps:

  1. Copy Templates directory to ckeditor/plugins/.
  2. Edit CKEditor config and add Templates to extraPlugins parameter.
Using config file
Using initialization script

Example of configuring with config.js

If you prefer to edit config.js config file of CKEditor or when your CKEditor initialization code is placed inside some non-editable part of CMS, make these changes there:

CKEDITOR.editorConfig = function(config) {
    config.extraPlugins = "Templates";
};

Example of configuring inside initialization code

Some CMSs do not use config.js file and let to edit CKEditor initialization script only. Do this changes there:

CKEDITOR.replace("#editor", {
    extraPlugins: "Templates",
});

Reviews

Be the first who will write a feedback for this plugin.

Tell a friend about Templates

Send