Bump - did anybody face the same issue?
Sep 1, 2015
10
Level 4
VueJS and Codemirror?
Hey Laracasts forum!
I have been searching for a solution to use codemirror in vuejs, but i did not really find any results trough google.
I'm fairly new to vuejs so please bear with me.
Im trying to accomplish this
var editor_two = CodeMirror.fromTextArea(document.getElementById("css-editor"), {
lineNumbers: true,
matchBrackets: true,
styleActiveLine: true,
theme: "material",
mode: "css"
});
editor_two.on("change", function () {
editor_two.save();
});
in vuejs
I tried to avoid doing it in vuejs, but it seems like that the v-model of the textarea does not get updated
<textarea name="customfields" id="customfields-editor" v-model="questionnaire.customfields">{!! $questionnaire->customfields !!}</textarea>
Did anyone face a similar problem, and maybe can guide me in the right direction?
Thank you for your help!
Please or to participate in this conversation.