fix: empty the container before editorjs init (#771)

This commit is contained in:
Md Hussain Nagaria
2024-04-12 13:52:43 +05:30
committed by GitHub
parent 93859d6635
commit a62b754d28

View File

@@ -245,6 +245,8 @@ const lesson = createResource({
})
const renderEditor = (holder, content) => {
// empty the holder
document.getElementById(holder).innerHTML = ''
return new EditorJS({
holder: holder,
tools: getEditorTools(),