Skip to content

Commit

Permalink
Merge pull request #392 from 1CRM/html-editor-image-issue
Browse files Browse the repository at this point in the history
don't update data and content after source.value initialisation
  • Loading branch information
alexivanenko authored May 10, 2024
2 parents 5ba7b92 + 6745a38 commit bea14fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/demo/src/components/HtmlEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ export default defineComponent({
sampleCode,
content,
editable,
updated,
updated
}
},
}
})
</script>
Original file line number Diff line number Diff line change
Expand Up @@ -947,6 +947,7 @@ export default defineComponent({
if (footer.value?.textContent || footer.value?.innerHTML) {
footerIsEmpty.value = false
}
dataUpdated.value = true
source.value = editor.value?.getHTML()
})
Expand Down

0 comments on commit bea14fa

Please sign in to comment.