You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi. Many thanks to StackEdit and stackedit.js! They are all great works!
Problem
I trying to use it in my Vue2 project according to the documentation below. stackedit.js
It always closes immediately after opening.
like this.
Code
stackedit.js version: "stackedit-js": "^1.0.7",.
Vue code
<template><div><div><buttontype="primary" @click="newMarkdown">New MarkDown</button></div><div><textarea>Hello **Markdown** writer!</textarea></div></div></template><script>importStackeditfrom'stackedit-js';exportdefault{components: {},data(){return{};},methods: {newMarkdown(){constel=document.querySelector('textarea');conststackedit=newStackedit();// Open the iframestackedit.openFile({name: 'Filename',// with an optional filenamecontent: {text: el.value// and the Markdown content.}});// Listen to StackEdit events and apply the changes to the textarea.stackedit.on('fileChange',(file)=>{el.value=file.content.text;});},},mounted(){},};</script><stylelang="scss"scoped></style>
Thanks
Hi. Many thanks to StackEdit and stackedit.js! They are all great works!
Problem
I trying to use it in my Vue2 project according to the documentation below.
stackedit.js
It always closes immediately after opening.
like this.
Code
stackedit.js
version:"stackedit-js": "^1.0.7",
.Vue code
Problem code
I suspect the cause of the problem is here.
There's a message there that triggers close.
Suggested solutions
The text was updated successfully, but these errors were encountered: