Skip to content

Commit

Permalink
Update src/js/control/textarea.tinymce.js
Browse files Browse the repository at this point in the history
Co-authored-by: Kevin Chappell <kevin@chappell.dev>
  • Loading branch information
Jojoshua and kevinchappell committed Mar 8, 2022
1 parent b4851aa commit d7f1879
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/js/control/textarea.tinymce.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,10 @@ export default class controlTinymce extends controlTextarea {
}

if (window.lastFormBuilderCopiedTinyMCE) {
setTimeout(() => {
const timeout = setTimeout(() => {
window.tinymce.editors[this.id].setContent(this.parsedHtml(window.lastFormBuilderCopiedTinyMCE))
window.lastFormBuilderCopiedTinyMCE = null
clearTimeout(timeout)
}, 300)
}

Expand Down

0 comments on commit d7f1879

Please sign in to comment.