Closed bypkt-bk closed 12 hours ago
useEffect(() => {
const loadInitialHTML = async () => {
try {
const blocks = await editor.tryParseHTMLToBlocks(TexteditList?.description || '');
editor.replaceBlocks(editor.document, blocks);
} catch (error) {
console.error("Failed to load initial HTML:", error);
}
};
loadInitialHTML();
}, [editor, TexteditList]);
try this instead hope it will work
Use useref