Skip to content

Commit

Permalink
reload toolbar on stateUpdated
Browse files Browse the repository at this point in the history
  • Loading branch information
PrestaSafe committed Aug 4, 2023
1 parent 83751ce commit 34117dd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions _dev/src/scripts/iframe.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,11 @@ async loadIframe () {
html.then((data) => {
let domBlock = body.querySelector('[data-id-prettyblocks="' + currentBlock.id_prettyblocks + '"]')
domBlock.innerHTML = data

const tb = new toolbar( body.querySelectorAll('.ptb-title'), doc, iwindow);
this.loadToolBar(tb)
})

})

// when iframe loaded, get blocks
Expand Down

0 comments on commit 34117dd

Please sign in to comment.