How do we grab the content from Toast UI Editor (JavaScript)?

5.5k Views Asked by At

I'm sorry if this is blindingly simple, but I cannot for the life of me find some documentation on it.

I've been through http://nhnent.github.io/tui.editor/api/latest/index.html and couldn't see it. With most JavaScript wysiwyg editors, they usually dump the data into a <textarea>, but this one doesn't.

Just checking to see if anyone else has used it and knows how that works. I want to use it within a form and submit the data/text it generates.

3

There are 3 best solutions below

2
On BEST ANSWER

Have you tried: var content = editor.getValue(); ?

0
On

Use editor.getMarkdown();

This gets content to markdown

https://nhn.github.io/tui.editor/latest/ToastUIEditorCore

0
On

I am using this

editor.getHTML()