TF-4378 Migrate scribe-mobile branch to master branch

This commit is contained in:
dab246
2026-03-16 11:45:14 +07:00
committed by Dat H. Pham
parent d0cc14beb4
commit 28d5036667
29 changed files with 223 additions and 189 deletions
@@ -23,7 +23,10 @@ class RichTextMobileTabletController extends GetxController {
try {
await htmlEditorApi?.webViewController.evaluateJavascript(source: '''
(() => {
document.getElementById('editor').focus();
const editor = document.getElementById('editor');
if (editor && typeof editor.focus === 'function') {
editor.focus();
}
})();''');
} catch (e) {
logWarning('RichTextMobileTabletController::focus:Exception: $e');