"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(); });