Open pan2za opened 1 week ago
or make a HTML plugin like the Import plugin.
I try to create a HTML plugin, the main INSERT command does not work, the code is,
onMount(() => {
return editor.registerCommand
I've add a HTML plugin for this project. I will try to push to this project later...
I've made a HTML plugin, the core code is pasted in the upper comment. but I'm not sure whether it's really needed by others.
I want to import a HTML file and rending it into the rich editor, there are 3 ways, 1 do as the lexical has suggested, getEditor, getRoot insertNode 2 make a HTML plugin like the Image plugin, there's so many difference there. 3 examine the copy/paste method in rich editor, which supports HTML content paste. Any suggestions?