Can't I use v-model?
See original GitHub issueSummary
I installed ‘@toast-ui/vue-editor’ to use the editor in vue. The component was imported and registered. I am trying to use it like this in templete
<editor
:options="editorOptions"
v-model="createParams.content"
height="300px"
initialEditType="wysiwyg" />
but data binding doesn’t work.
https://github.com/nhn/tui.editor/issues/1023
Is the v-model still not working?
Version
“@toast-ui/vue-editor”: “^2.2.0”
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:5
Top Results From Across the Web
What you should know about Vue v-model - LearnVue
Vue v-model is a directive that creates a two-way data binding between a value in our template and a value in our data...
Read more >Form Input Bindings - Vue.js
In addition, v-model can be used on inputs of different types, <textarea> , and <select> elements. It automatically expands to different DOM property...
Read more >Vue during coffee break - using v-model with custom ...
v -model is a common directive used in almost every Vue application. It's typically used to enable two-way data binding on form elements...
Read more >Using v-model in Vue 3 to build complex forms - LogRocket Blog
The Vue v-model directive enables two-way data binding on form input elements, such as the input element, textarea element, and select element ...
Read more >Vue, how to use v-model - Flavio Copes
The v-model Vue directive allows us to create a two-way binding. You can bind a form input element for example, and make it...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@mygyugyu This is one way in case you missed it https://github.com/nhn/tui.editor/issues/1023#issuecomment-643024296.
Basically Toast UI manages a more complicated internal state (hence the comment about perf concerns). For now our solution is:
:initial-value(you need this instead ofv-modeluntil implemented)invoke('setMarkdown', newVal);Here’s My Sandbox link for onChange and get value for HTML and MARKDOWN tui/editor with VueJs.
https://codesandbox.io/s/onchange-tuieditor-v4ngb