readme.txt 1.6 KB

123456789101112131415161718192021222324252627282930
  1. lineheight
  2. ==========
  3. CKEDITOR Line-height plugin documentation
  4. ----------------------------------------------
  5. Installation Notes:
  6. Adding plugin into the toolbar:
  7. 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:
  8. Extract the plugin .zip archive.
  9. 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.
  10. For example, the lineheight plugin would be installed into this folder: <CKEditor folder>/plugins/lineheight.
  11. Check and resolve plugin dependencies. If a plugin needs others to work, you will need to add these manually as well.
  12. Enable the plugin. Use the extraPlugins setting to add the plugin to your confiuration:
  13. config.extraPlugins = 'lineheight';
  14. Refer this link for configuring the toolbar: http://docs.ckeditor.com/#!/guide/dev_toolbar
  15. Customizing the lineheight values in the dropdown
  16. -------------------------------------------------------
  17. In order to have custom values of line-height instead of the default, you can add following line in the config.js file:
  18. config.line_height="1em;1.1em;1.2em;1.3em;1.4em;1.5em";
  19. Here, "em" is the unit of line-height which you can change to "px","%" or any other allowed unit for line-height.
  20. You can also change the numbers based on your requirements. You can have more range or low range , it all depends on your requirements.