Content Templates Documentation
Overview
The Content Templates plugin allows to apply predefined formatting templates to the document content.
When enabled, it provides a dialog to offer a choice of predefined document templates - with page layout, text formatting and styles. It is included in the Full distribution. The plugin also adds the
toolbar button which lets the user invoke a dialog with predefined templates.Content Templates
Use the Content Templates button to apply a selected template to content. You may add the template to an existing content, or replace it by checking the Replace actual content tick box.
Rich Text Editor, editor1
Editor toolbars
Press ALT 0 for help
◢Elements path Related Features
- Styling and Formatting – Basic Text Styles: Bold, Italic and More
- Styling and Formatting – Copying Text Formatting
- Styling and Formatting – Applying Styles to Editor Content
- Styling and Formatting – Setting Text and Background Color
Get Sample Source Code
- Content Templates
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="robots" content="noindex, nofollow"> <title>Content Templates</title> <script src="https://cdn.ckeditor.com/4.21.0/standard-all/ckeditor.js"></script> </head> <body> <textarea cols="80" id="editor1" name="editor1" rows="10"><p>This is some <strong>sample text</strong>. You are using <a href="https://ckeditor.com/">CKEditor</a>.</p></textarea> <script> CKEDITOR.replace('editor1', { extraPlugins: 'templates', height: 350, removeButtons: 'PasteFromWord' }); </script> </body> </html>