1 |
efrain |
1 |
lineheight
|
|
|
2 |
==========
|
|
|
3 |
|
|
|
4 |
CKEDITOR Line-height plugin documentation
|
|
|
5 |
----------------------------------------------
|
|
|
6 |
|
|
|
7 |
Installation Notes:
|
|
|
8 |
|
|
|
9 |
Adding plugin into the toolbar:
|
|
|
10 |
Using CKBuilder is a recommended solution, however, if you have plugins developed by yourself or by third parties, you can add plugins to your local installation manually by following the steps described below:
|
|
|
11 |
Extract the plugin .zip archive.
|
|
|
12 |
Copy the plugin files to the plugins folder of your CKEditor installation. Each plugin must be placed in a sub-folder that matches its "technical" name.
|
|
|
13 |
|
|
|
14 |
For example, the lineheight plugin would be installed into this folder: <CKEditor folder>/plugins/lineheight.
|
|
|
15 |
Check and resolve plugin dependencies. If a plugin needs others to work, you will need to add these manually as well.
|
|
|
16 |
Enable the plugin. Use the extraPlugins setting to add the plugin to your confiuration:
|
|
|
17 |
|
|
|
18 |
config.extraPlugins = 'lineheight';
|
|
|
19 |
|
|
|
20 |
Refer this link for configuring the toolbar: http://docs.ckeditor.com/#!/guide/dev_toolbar
|
|
|
21 |
|
|
|
22 |
|
|
|
23 |
Customizing the lineheight values in the dropdown
|
|
|
24 |
-------------------------------------------------------
|
|
|
25 |
In order to have custom values of line-height instead of the default, you can add following line in the config.js file:
|
|
|
26 |
|
|
|
27 |
config.line_height="1em;1.1em;1.2em;1.3em;1.4em;1.5em";
|
|
|
28 |
|
|
|
29 |
Here, "em" is the unit of line-height which you can change to "px","%" or any other allowed unit for line-height.
|
|
|
30 |
You can also change the numbers based on your requirements. You can have more range or low range , it all depends on your requirements.
|