Closed 100kimch closed 4 years ago
<template>
<vue-simplemde v-model="content" ref="markdownEditor" :configs="{ autofocus: true }" />
</template>
<script>
import VueSimplemde from 'vue-simplemde'
export default {
components: {
VueSimplemde
},
computed: {
simplemde() {
return this.$refs.markdownEditor.simplemde;
},
},
methods: {
toTextArea() {
this.simplemde.toTextArea();
}
}
}
</script>
<style>
@import '~simplemde/dist/simplemde.min.css';
</style>
Thanks for making this cool element :) but I need focus() option and I found
SimpleMDE.prototype.toTextArea()
method. It works when I callSimpleMDE.prototype.toggleBlockquote()
, for example, buttoTextArea()
not works well. Do you willing to support this method?