As I hope to use selected textarea, I found Javascript, but I don't know how to use it as the vue script
$(document).ready(function () {$(".editorHTMLDIV").hide();});
function convertToHTML() {
$('.editorHTMLDIV').text($('.editorDIV').html());
$('.editorHTMLDIV').show();
$('.editorDIV').hide();
I want to use this Javascript as Vue script like
<template>
<div>
</div>
</template>
<script>
I wanna know this area
</script>
convertToHTMLfunction to be called?