diff --git a/public/js/ckeditor-init.js b/public/js/ckeditor-init.js index 37dc357..225c230 100644 --- a/public/js/ckeditor-init.js +++ b/public/js/ckeditor-init.js @@ -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() + }); }); }, }))