Fix cannot scroll editor when disable code view in composer
This commit is contained in:
@@ -46,6 +46,15 @@ class HtmlUtils {
|
||||
editor.parentNode.replaceChild(newEditor, editor);''',
|
||||
name: 'unregisterDropListener');
|
||||
|
||||
static recalculateEditorHeight({double? maxHeight}) => (
|
||||
script: '''
|
||||
const editable = document.querySelector('.note-editable');
|
||||
if (editable) {
|
||||
editable.style.height = $maxHeight + 'px';
|
||||
}
|
||||
''',
|
||||
name: 'recalculateEditorHeight');
|
||||
|
||||
static String customInlineBodyCssStyleHtmlEditor({
|
||||
TextDirection direction = TextDirection.ltr,
|
||||
double? horizontalPadding,
|
||||
|
||||
Reference in New Issue
Block a user