简体   繁体   中英

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.

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

Use editor.getMarkdown() ;

This gets content to markdown

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM