Skip to content

Commit

Permalink
fix #1559 Custom <head> code must be reapplied
Browse files Browse the repository at this point in the history
  • Loading branch information
lexoyo committed Feb 27, 2024
1 parent 02e2641 commit 3e7bc3a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/ts/client/grapesjs/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,14 @@ export const settingsDialog = (editor, opts) => {
model.set('settings', data.settings || {})
model.set('name', data.name)
})
// On chrome this is needed to apply the head content to the DOM
editor.on('storage:end:load', () => {
setTimeout(() => {
updateDom(editor)
})
})
// Normal way to apply the head content to the DOM
// fix #1559 Custom <head> code must be reapplied
editor.on('canvas:frame:load', () => {
updateDom(editor)
})
Expand Down

0 comments on commit 3e7bc3a

Please sign in to comment.