There is my code on php file :
<h2>Editor</h2>
<textarea id="editor" data-preview="#preview"></textarea>
<h2>Preview</h2>
<div id="preview"></div>
<script>
import TextareaMarkdown from 'textarea-markdown'
let textarea = document.querySelector("textarea");
new TextareaMarkdown(textarea);
</script>
I've done the nmp install : npm install -g textarea-markdown
I've got the text area editor but nothing happen in the "preview"
Hope someone will answer soon cause I need it ASAP pls
There is my code on php file :
I've done the nmp install :
npm install -g textarea-markdownI've got the text area editor but nothing happen in the "preview"
Hope someone will answer soon cause I need it ASAP pls