adding files of assets
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
"use strict";
|
||||
|
||||
// Class definition
|
||||
var KTFormsCKEditorDocument = function () {
|
||||
// Private functions
|
||||
var exampleDocument = function () {
|
||||
DecoupledEditor
|
||||
.create(document.querySelector('#kt_docs_ckeditor_document'))
|
||||
.then(editor => {
|
||||
const toolbarContainer = document.querySelector('#kt_docs_ckeditor_document_toolbar');
|
||||
|
||||
toolbarContainer.appendChild(editor.ui.view.toolbar.element);
|
||||
})
|
||||
.catch(error => {
|
||||
console.error(error);
|
||||
});
|
||||
}
|
||||
|
||||
return {
|
||||
// Public Functions
|
||||
init: function () {
|
||||
exampleDocument();
|
||||
}
|
||||
};
|
||||
}();
|
||||
|
||||
// On document ready
|
||||
KTUtil.onDOMContentLoaded(function () {
|
||||
KTFormsCKEditorDocument.init();
|
||||
});
|
||||
Reference in New Issue
Block a user