29 lines
632 B
JavaScript
29 lines
632 B
JavaScript
"use strict";
|
|
|
|
// Class definition
|
|
var KTFormsCKEditorClassic = function () {
|
|
// Private functions
|
|
var exampleClassic = function () {
|
|
ClassicEditor
|
|
.create(document.querySelector('#kt_docs_ckeditor_classic'))
|
|
.then(editor => {
|
|
console.log(editor);
|
|
})
|
|
.catch(error => {
|
|
console.error(error);
|
|
});
|
|
}
|
|
|
|
return {
|
|
// Public Functions
|
|
init: function () {
|
|
exampleClassic();
|
|
}
|
|
};
|
|
}();
|
|
|
|
// On document ready
|
|
KTUtil.onDOMContentLoaded(function () {
|
|
KTFormsCKEditorClassic.init();
|
|
});
|