Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using TextEditingController in flutter_html_editor? #16

Open
hason1 opened this issue Aug 16, 2020 · 0 comments
Open

using TextEditingController in flutter_html_editor? #16

hason1 opened this issue Aug 16, 2020 · 0 comments

Comments

@hason1
Copy link

hason1 commented Aug 16, 2020

is there any way to use summernote or wysiwyg editor in Flutter textfield editor?

I used flutter_html_editor, Zefyr, html_editor and flutter_summernote packages, but these dont worked well and they returned null value in the following code:

    final _etEditor = await keyEditor.currentState.getText();

I got the following error:

E/flutter ( 6639): [ERROR:flutter/lib/ui/ui_dart_state.cc(166)] Unhandled Exception: NoSuchMethodError: The method 'getText' was called on null.
E/flutter ( 6639): Receiver: null
E/flutter ( 6639): Tried calling: getText()

I want that the textfield become like the attached image. How to fix it? Can you add a controller to save the text into it?

Can I implement a package like these, or is there any solution to make summernote or wysiwyg textfield editor which can convert html tags in Flutter?

enter image description here

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant