-
Notifications
You must be signed in to change notification settings - Fork 551
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
How to get entered content as HTML format in iOS / Android app? #186
Comments
🙋♂️I do need this. Thanks |
I do need this too, Thanks. |
I had this problem just now.
|
@sil-main-coo Dose these methods works well? it will help me a lot if so. Thanks |
It supports markdown conversion to html. For my project it is very good. Please read the documentation for reference. |
If you want to use the HTML codec in my PR right now, add the following to your dependency_overrides:
notus:
git:
url: git://github.com/nalbion/zefyr.git
path: packages/notus This is how I'm using my Markdown decoder: _saveNotes() {
final markdown = notusMarkdown.encode(_notesController.document.toDelta());
// save the markdown string
}
NotusDocument _loadNotes() {
// load a markdown string
var markdown = null; // 'This is **Markdown**'
if (markdown == null) {
return NotusDocument();
}
return NotusDocument.fromDelta(notusMarkdown.decode(markdown));
} |
How to use create notusMaskdown object? Please checkout the screenshot below. |
Sorry. I wrote missing a package: Notus. |
You need to add |
Awesome thanks!!. |
Does anyone know how to make it from the other way? How to display html inside zephyr? I'am trying to convert html to Notusdocument |
Do you have any examples? |
Anyone Has complete code for reference |
import 'package:markdown/markdown.dart' as markdown;
|
What is package:markdown/markdown.dart? |
I am trying to get entered content as HTML format from this ZefyrField. If it is possible how?
_controller.document.toJson()
and_controller.document.toString()
gives the content in json and string format. But what if want to get that entered content as HTML format?The text was updated successfully, but these errors were encountered: