Search code examples
javascriptwysiwygtoast-ui-editor

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


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.


Solution

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