最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

wysiwyg - How do we grab the content from Toast UI Editor (JavaScript)? - Stack Overflow

programmeradmin2浏览0评论

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 .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.

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.

Share Improve this question edited Apr 8, 2018 at 18:16 xil3 asked Apr 8, 2018 at 18:08 xil3xil3 16.4k8 gold badges67 silver badges103 bronze badges
Add a ment  | 

3 Answers 3

Reset to default 2

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

Use editor.getMarkdown();

This gets content to markdown

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

I am using this

editor.getHTML()
发布评论

评论列表(0)

  1. 暂无评论