Install the editorjs package:
yarn add @editorjs/editorjs
or
npm i @editorjs/editorjs --save
The next step is to import the package.
import EditorJS from '@editorjs/editorjs'
In Vue
<script setup lang="ts">
import EditorJS from '@editorjs/editorjs'
import { onMounted } from 'vue'
onMounted(() => {
const editor = new EditorJS({
/**
* Id of Element that should contain Editor instance
*/
holder: 'editorjs'
});
})
</script>
<template>
<div id="editorjs"></div>
</temaplte>