froala / wysiwyg-editor

The next generation Javascript WYSIWYG HTML Editor.
https://www.froala.com/wysiwyg-editor
Other
5.3k stars 672 forks source link

Markdown text is lost - plugin is not usable #4431

Open FROGGS opened 2 years ago

FROGGS commented 2 years ago
Expected behavior.

When I switch to markdown mode and enter markdown text I expect that I can retrieve that text via API for saving. Later when the user comes back he/she should be able to get the editor initialized with that saved text to continue writing.

Actual behavior.

When switching to markdown mode the entered text is separate to the text value that I can retrieve via API. For non-markdown text we use editor.html.get() but there is no documented method to get the markdown text.

Steps to reproduce the problem.

Look at the documentation here: https://froala.com/markdown-plugin/

Editor version.

angular-froala-wysiwyg 4.0.10

OS.

Windows 10

Browser.

Edge v99

Recording.

no

ghost commented 2 years ago

There is seriously no point to the plugin without the ability to pass markdown in and get markdown out. Due to this lack, we have to use a totally different editor component for markdown content.

Casilio commented 1 year ago

Useless plugin as of right now. Please add ability to set/get markdown directly, without converting to html.