mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 13:54:23 +00:00
16 lines
529 B
TypeScript
16 lines
529 B
TypeScript
import ClassicEditor from "./editor_config";
|
|
|
|
const ckeditorFields: NodeListOf<HTMLTextAreaElement> = document.querySelectorAll('textarea[ckeditor]');
|
|
ckeditorFields.forEach((field: HTMLTextAreaElement): void => {
|
|
ClassicEditor
|
|
.create( field )
|
|
.then( editor => {
|
|
//console.log( 'CkEditor was initialized', editor );
|
|
})
|
|
.catch( error => {
|
|
console.error( error.stack );
|
|
})
|
|
;
|
|
});
|
|
//Fields.push.apply(Fields, document.querySelectorAll('.cf-fields textarea'));
|