TF1528: Auto down one line when typing

(cherry picked from commit 557bda15ce2acd3e911dd11348519adb99a5eff6)
This commit is contained in:
HuyNguyen
2023-03-10 10:00:32 +07:00
committed by Dat Vu
parent 8820cc537b
commit c99ae4f0b7
@@ -781,6 +781,7 @@ class ComposerView extends GetWidget<ComposerController>
key: const Key('composer_editor_web'),
controller: controller.richTextWebController.editorController,
htmlEditorOptions: const HtmlEditorOptions(
shouldEnsureVisible: true,
hint: '',
darkMode: false,
customBodyCssStyle: bodyCssStyleForEditor),
@@ -791,6 +792,7 @@ class ComposerView extends GetWidget<ComposerController>
otherOptions: const OtherOptions(height: 550),
callbacks: Callbacks(onBeforeCommand: (currentHtml) {
log('ComposerView::_buildHtmlEditor(): onBeforeCommand : $currentHtml');
controller.richTextWebController.setFullScreenEditor();
controller.setTextEditorWeb(currentHtml);
}, onChangeContent: (changed) {
log('ComposerView::_buildHtmlEditor(): onChangeContent : $changed');