From 32979335a58efb15fec4e5e6fd97d6ea2a0157a5 Mon Sep 17 00:00:00 2001 From: Maxime Freschard Date: Fri, 9 Sep 2016 16:12:47 +0200 Subject: [PATCH] Update plugin.js Updated the lineheight format object that is registered in the Editor Formatter, so the line-height is applied to paragraphs, and headings from 1 to 6 as a style attribute. (before a span tag was added, whereas line-height should be applied to block elements) --- lineheight/plugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lineheight/plugin.js b/lineheight/plugin.js index ca847b0..8087318 100644 --- a/lineheight/plugin.js +++ b/lineheight/plugin.js @@ -3,7 +3,7 @@ editor.on('init', function () { editor.formatter.register({ - lineheight: {inline: 'span', styles: {'line-height': '%value'}} + lineheight: {selector: 'p,h1,h2,h3,h4,h5,h6', styles: {'line-height': '%value'}} }); });