Comments (6)
I had another thought about this - if you want to display the output in WYSIWYG format with Flutter widgets, I recommend you use flutter_html like this:
initialize editor:
HtmlEditorController controller = HtmlEditorController();
HtmlEditor(
controller: controller
)
get text:
String? txt = await controller.getText();
setState(() {
htmlString = txt;
});
widget:
Html(data: htmlString ?? "No data!")
I don't want to add this as an option in the package because it is quite a heavy dependency, but the option is there if you want to use it.
from html-editor-enhanced.
Yep I found the issue and it is fixed on master. the stream.drain()
line in the getText()
code was causing the issue, it did the same thing for mobile height detection. Thanks for the report!
from html-editor-enhanced.
Check the example app, it works on Flutter Web. TLDR:
initialize editor:
HtmlEditorController controller = HtmlEditorController();
HtmlEditor(
controller: controller
)
get text:
String? txt = await controller.getText();
setState(() {
textToDisplay = txt;
});
widget:
Text(textToDisplay)
Let me know if you have any issues with this.
from html-editor-enhanced.
String? txt = await controller.getText();
setState(() {
htmlString = txt;
});
submit button it's not able to set the state in the latest version on web, can you check
from html-editor-enhanced.
Do you get any errors in the console?
from html-editor-enhanced.
there are no errors on the console, the state is not set, when I am trying to print the txt, the console is just stuck there, no response in the console.
from html-editor-enhanced.
Related Issues (20)
- controller.getText() Fails When HTML Editor is Not Visible on Screen HOT 1
- On the phone, I can't just copy the picture
- [QUESTION] Is there a way to remove/hide height adjuster? HOT 3
- [QUESTION] How to disable undo/redo button?
- Console error
- [BUG] PlatformException Unknown feature SUPPRESS_ERROR_PAGE HOT 8
- [QUESTION] : Controller InAppWebView
- [QUESTION] How to remove line under editor? HOT 2
- Listen to text changes HOT 1
- How to fix on navigation to back page having screen flickering issue
- [bug] Flutter 3.22.2 cause error on web HOT 3
- Controller.execCommand('fontName', argument: 'font_name'); dont work anymore
- Unhandled Exception: Exception: HTML editor is still loading, please wait before evaluating this JS: $('#summernote-2').summernote('code', '');![BUG] HOT 6
- [BUG] Spell check not work on Safari
- [BUG] iOS app getting crashed when we change font styles
- [QUESTION]How to set defualt text direction to RTL
- [QUESTION] How to custom background and border radius of dropdown summer note?
- [BUG] Error messages with: message_codecs, platform_channel, platform_views
- [BUG] No file or variants found for asset: packages/html_editor_enhanced/summernote.html. HOT 1
- [FEATURE] How can I disable pinch to zoom (touchpad) or any type of zoom in the html editor enhanced content view !
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from html-editor-enhanced.