UNPKG

lexical-vue

Version:

An extensible Vue 3 web text-editor based on Lexical.

22 lines (21 loc) 720 B
import { defineComponent, onMounted, onUnmounted } from "vue"; import { registerCheckList } from "@lexical/list"; import { useLexicalComposer } from "./LexicalComposer.vine.js"; const CheckListPlugin = (()=>{ const __vine = defineComponent({ name: 'CheckListPlugin', setup (__props, param) { let { expose: __expose } = param; __expose(); const editor = useLexicalComposer(); onMounted(()=>{ const unregister = registerCheckList(editor); onUnmounted(unregister); }); return (_ctx, _cache)=>null; } }); __vine.__vue_vine = true; return __vine; })(); export { CheckListPlugin };