Skip to content

castler/tinymce-line-height-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

TinyMCE - Plugin - line-height Formatter

A very basic, based on the font-size implementation in TinyMCE, plugin to format a element with a given line-height.

Requirements

This was written for TinyMCE version 4.1.5 (2014-09-09)

https://github.com/tinymce/tinymce/

Setup

Copy the plugin into your TinyMCE plugin folder.

Your TinyMCE init() method should contain the following value:

tinymce.init({
    ...
    plugins: 'lineheight',
    toolbar: 'lineheightselect' 
    ...
});

Also you could configure the different heights like that:

tinymce.init({
    ...
    lineheight_formats: "8pt 9pt 10pt 11pt 12pt 14pt 16pt 18pt 20pt 22pt 24pt 26pt 36pt",
    ...
});

About

TinyMCE 4 Line-Height Formatter

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published