Skip to navigation
Add line-height to tinymce4
20.04.14
my ini script look likes $(function () { tinymce.init({ fontsize_formats: "0.8em 0.9em 1em 1.1em 1.2em 1.3em 1.4em 1.5em 1.6em", selector: "textarea.tinymce", plugins: ["code advlist autolink lists link image preview hr anchor pagebreak textcolor"], toolbar: "undo redo | bold italic | link image | forecolor backcolor alignleft aligncenter alignright alignjustify fontselect fontsizeselect ", style_formats: [ {title: "Line Height", items: [ {title: 'Line Height 1.0', inline: 'span', classes: 'lh_1-0' }, {title: 'Line Height 1.1', inline: 'span', classes: 'lh_1-1' }, {title: 'Line Height 1.2', inline: 'span', classes: 'lh_1-2' }, {title: 'Line Height 1.3', inline: 'span', classes: 'lh_1-3' }, {title: 'Line Height 1.4', inline: 'span', classes: 'lh_1-4' }, {title: 'Line Height 1.5', inline: 'span', classes: 'lh_1-5' }, {title: 'Line Height 1.6', inline: 'span', classes: 'lh_1-6' }, {title: 'Line Height 1.7', inline: 'span', classes: 'lh_1-7' }, {title: 'Line Height 1.8', inline: 'span', classes: 'lh_1-8' }, {title: 'Line Height 1.9', inline: 'span', classes: 'lh_1-9' }, {title: 'Line Height 2.0', inline: 'span', classes: 'lh_2-0' }, {title: 'Line Height 2.1', inline: 'span', classes: 'lh_2-1' }, ]}, ] }) and my css entries are: .lh_1-0 {line-height:1.0;} .lh_1-2 {line-height:1.2;} .lh_1-3 {line-height:1.3;} .lh_1-4 {line-height:1.4;} .lh_1-5 {line-height:1.5;} .lh_1-6 {line-height:1.6;} .lh_1-7 {line-height:1.7;} .lh_1-8 {line-height:1.8;} .lh_1-9 {line-height:1.9;} .lh_2-0 {line-height:2.0;} .lh_2.1 {line-height:2.1;}
http://www.tinymce.com/forum/post.php?tid=33748
Reply
Anonymous
Information Epoch 1736565592
Data dominates.
Home
Notebook
Contact us