pianello-api/resources/js/components/document-editor/index.js
Ale Gallo 82f958e5da Committing laravel (part 3)
committing js templating files and components
2023-11-10 16:00:59 +01:00

17 lines
495 B
JavaScript

(function () {
"use strict";
$(".editor").each(function () {
const el = this;
DocumentEditor.create($(el).find(".document-editor__editable")[0])
.then((editor) => {
$(el)
.closest(".editor")
.find(".document-editor__toolbar")
.append(editor.ui.view.toolbar.element);
})
.catch((error) => {
console.error(error);
});
});
})();