Apply line-height through the paragraph API

This is the runtime companion to the line-height initialization example. Here the value is changed by calling the lineHeight command directly on the current paragraph.

This paragraph is the current line-height target. Change the spacing and compare the resulting inline style.

HTML output
Ready.
Example configuration - Line Height
summernote.create('#paragraph-line-height-editor', {
  height: 240,
});

summernote.invoke('#paragraph-line-height-editor', 'lineHeight', '1.2');
summernote.invoke('#paragraph-line-height-editor', 'lineHeight', '1.5');
summernote.invoke('#paragraph-line-height-editor', 'lineHeight', '2.0');