This sample shows how to configure CKEditor to use the Document Properties plugin. This plugin allows you to set the metadata of the page, including the page encoding, margins, meta tags, or background.
Note: This plugin is to be used along with the fullPage
configuration.
The CKEditor instance below is inserted with a JavaScript call using the following code:
CKEDITOR.replace( 'textarea_id', { fullPage: true, extraPlugins: 'docprops' });
Note that textarea_id
in the code above is the id
attribute of
the <textarea>
element to be replaced.