tneotia / html-editor-enhanced

A Flutter package that provides a WYSIWYG editor backed by flutter_inappwebview and the Summernote library.
https://pub.dev/packages/html_editor_enhanced
MIT License
269 stars 318 forks source link

[QUESTION] How can I set the line spacing for non-editorial lines at initialization? #498

Open alexander-steel opened 4 months ago

alexander-steel commented 4 months ago

What I have tried within oninit

 controller.value.execCommand('line-height', argument: '0.6');
 controller.value.execCommand('lineHeight', argument: '0.6');
controller.value.editorController!.evaluateJavascript(
                        source:
                            "\$('#summernote-2').summernote('editor.lineHeight', 1.0);");

I have tried all of them and the line spacing in the editor is never too tight. Is it possible to change it in the first place?