nhn / toast-ui.vue-editor

This repository is DEPRECATED! GO TO 👉 https://github.com/nhn/tui.editor/tree/master/apps/vue-editor
MIT License
229 stars 47 forks source link

getHtml returns markdown #43

Open soongsta opened 4 years ago

soongsta commented 4 years ago

Version

@toast-ui/vue-editor 1.1.1

Test Environment

Chrome, vuejs 2.6.11

Current Behavior

I am using vuejs , and npm i @toast-ui/vue-editor Will try and setup a codepen or jsfiddle, but not familiar how to do this.

When i format a single word with bold, it works fine. getHtml returns eg <strong>Bolded</strong>

When i format a second word with bold, and look at html (using getHtml), the 2nd bolded word is in markdown eg **Bolded** This applies for Italics and Strike Through as well

Expected Behavior

All words formatted should be return HTML when using getHtml function

arthaud-proust commented 4 years ago

Same problem, i tested different get method and i found this: replace invoke('getHtml') by invoke('getMarkdown'). That return text formated in html, i don't know why