adding files of assets
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
"use strict";
|
||||
|
||||
// Class definition
|
||||
var KTFormsCKEditorBalloonBlock = function () {
|
||||
// Private functions
|
||||
var exampleBalloonBlock = function () {
|
||||
BalloonEditor
|
||||
.create(document.querySelector('#kt_docs_ckeditor_balloon_block'))
|
||||
.then(editor => {
|
||||
console.log(editor);
|
||||
})
|
||||
.catch(error => {
|
||||
console.error(error);
|
||||
});
|
||||
}
|
||||
|
||||
return {
|
||||
// Public Functions
|
||||
init: function () {
|
||||
exampleBalloonBlock();
|
||||
}
|
||||
};
|
||||
}();
|
||||
|
||||
// On document ready
|
||||
KTUtil.onDOMContentLoaded(function () {
|
||||
KTFormsCKEditorBalloonBlock.init();
|
||||
});
|
||||
@@ -0,0 +1,28 @@
|
||||
"use strict";
|
||||
|
||||
// Class definition
|
||||
var KTFormsCKEditorBalloon = function () {
|
||||
// Private functions
|
||||
var exampleBalloon = function () {
|
||||
BalloonEditor
|
||||
.create(document.querySelector('#kt_docs_ckeditor_balloon'))
|
||||
.then(editor => {
|
||||
console.log(editor);
|
||||
})
|
||||
.catch(error => {
|
||||
console.error(error);
|
||||
});
|
||||
}
|
||||
|
||||
return {
|
||||
// Public Functions
|
||||
init: function () {
|
||||
exampleBalloon();
|
||||
}
|
||||
};
|
||||
}();
|
||||
|
||||
// On document ready
|
||||
KTUtil.onDOMContentLoaded(function () {
|
||||
KTFormsCKEditorBalloon.init();
|
||||
});
|
||||
@@ -0,0 +1,28 @@
|
||||
"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();
|
||||
});
|
||||
@@ -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();
|
||||
});
|
||||
@@ -0,0 +1,28 @@
|
||||
"use strict";
|
||||
|
||||
// Class definition
|
||||
var KTFormsCKEditorInline = function () {
|
||||
// Private functions
|
||||
var exampleInline = function () {
|
||||
InlineEditor
|
||||
.create(document.querySelector('#kt_docs_ckeditor_inline'))
|
||||
.then(editor => {
|
||||
console.log(editor);
|
||||
})
|
||||
.catch(error => {
|
||||
console.error(error);
|
||||
});
|
||||
}
|
||||
|
||||
return {
|
||||
// Public Functions
|
||||
init: function () {
|
||||
exampleInline();
|
||||
}
|
||||
};
|
||||
}();
|
||||
|
||||
// On document ready
|
||||
KTUtil.onDOMContentLoaded(function () {
|
||||
KTFormsCKEditorInline.init();
|
||||
});
|
||||
Reference in New Issue
Block a user