Skip to content

Commit fc59490

Browse files
committed
add paver-ready and paver-change event listeners
1 parent 5eca459 commit fc59490

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

assets/js/paver.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

resources/js/paver.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,8 @@ window.Paver = function (data) {
328328
this.frameInit()
329329

330330
this.loading = false
331+
332+
this.$dispatch('paver-ready')
331333
}
332334
}, 100)
333335
},
@@ -499,6 +501,7 @@ window.Paver = function (data) {
499501
let newBlocks = gatherBlocks(this.root())
500502

501503
this.content = JSON.stringify(newBlocks)
504+
this.$dispatch('paver-change', {content: this.content})
502505

503506
this.hoveringStates()
504507
this.linkClickWarnings()

0 commit comments

Comments
 (0)