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
So inside the component when I try using it as following:
<template>
<ClientOnly>
<LexicalComposer:initial-config="config">
<LexicalPlainTextPlugin>
<template #contentEditable>
<LexicalContentEditable />
</template>
<template #placeholder>
<div>
What do you want to write about today?
</div>
</template>
</LexicalPlainTextPlugin>
</LexicalComposer>
</ClientOnly>
</template>
<script setup>
const { $useEditor:useEditor,} =useNuxtApp()constconfig= { editable:true, theme: { },onError(error) {console.error(error) },}consteditor=useEditor()// Two-way bindingconstcontent=ref('')
</script>
I get an error: useEditor is not a function and trace shows <LexicalComposer /> is required error message (which is a bit misleading, because it throws when editor in underlying function is null
The text was updated successfully, but these errors were encountered:
I am exposing lexical-vue with the following plugin:
So inside the component when I try using it as following:
I get an error:
useEditor is not a function
and trace shows<LexicalComposer /> is required
error message (which is a bit misleading, because it throws when editor in underlying function is nullThe text was updated successfully, but these errors were encountered: