Adds font, font size, and line height fields to the Document Properties plugin. Following the example of the Document Properties plugin, these settings are saved as inline styles to the <BODY> tag, so they control defaults for an entire document rather than only for paragraph or smaller elements as do CKEditor's Font and Size dropdowns.
Inline styles in the <BODY> tag allow users to configure an entire document's appearance without resorting to an external style sheet. Note, however, that styles defined in this way override duplicate definitions in external style sheets as well as embedded styles in <HEAD>, and are overridden by styles defined in subordinate elements. See Types of CSS Styles for details.
The recommended way to install all CKEditor add-ons is to create a custom build by using Online builder. To do that, click the Add to my editor button on the plugin page. When you are done, click the Build my editor button on the right side of the page to go to Online builder.
Note: This add-on is already selected to be a part of your current build.
Add-on installation instructions
If you want to add the plugin manually, you will need to:
Extract the downloaded plugin .zip into the plugins folder of your CKEditor installation. Example:
http://example.com/ckeditor/plugins/docfont
Enable the plugin by using the extraPlugins configuration setting. Example:
config.extraPlugins = 'docfont';
Download and configure all its dependencies, too.
Add-on dependencies
No additional dependencies.
Note: The plugin may have additional requirements. Check the add-on page and documentation for more details.
Version 2.0:
- Added tooltips
- Added resetStyle() as this wasn't getting inherited from docProps
- Added ability to set line-height
- Revised some labels
- Fixed some typos
Tested only witih CKEditor 4.6, but may be compatible with other versions.