Skip to content

Commit

Permalink
Merge pull request #2 from DissNik/2.x
Browse files Browse the repository at this point in the history
async mode
  • Loading branch information
lee-to authored Oct 14, 2024
2 parents c0322e5 + 5a5b92a commit 2c2b42d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions public/js/ckeditor-init.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,11 @@ document.addEventListener('alpine:init', () => {
// from a local file system (file://) - load this site via HTTP server if you enable MathType
'MathType'
]
})
.then(editor => {
editor.model.document.on('change:data', (evt, data) => {
this.$el.value = editor.getData()
});
});
},
}))
Expand Down

0 comments on commit 2c2b42d

Please sign in to comment.