fix: empty the container before editorjs init (#771)
This commit is contained in:
committed by
GitHub
parent
93859d6635
commit
a62b754d28
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user