TF-1033: able share other file not media file

This commit is contained in:
ManhNTX
2022-10-05 15:06:37 +07:00
committed by Dat H. Pham
parent b180f0187b
commit 9fd1b4f653
4 changed files with 13 additions and 4 deletions
@@ -675,10 +675,10 @@ class ComposerView extends GetWidget<ComposerController>
addDefaultSelectionMenuItems: false,
initialContent: initialContent,
onCreated: (editorApi) {
richTextMobileTabletController.htmlEditorApi = editorApi;
if(responsiveUtils.isMobile(context)){
controller.keyboardRichTextController.onCreateHTMLEditor(editorApi);
} else {
richTextMobileTabletController.htmlEditorApi = editorApi;
richTextMobileTabletController.listenHtmlEditorApi();
}
},
@@ -140,7 +140,7 @@ class RichTextMobileTabletController extends BaseRichTextController {
htmlEditorApi?.insertImageLink(image.link!);
} else {
await htmlEditorApi?.moveCursorAtLastNode();
htmlEditorApi?.insertHtml(image.base64Uri ?? '');
await htmlEditorApi?.insertHtml(image.base64Uri ?? '');
}
}