mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-19 21:24:59 +00:00
13 lines
461 B
TypeScript
13 lines
461 B
TypeScript
import config from "./editor_config";
|
|
import { ClassicEditor } from "ckeditor5";
|
|
|
|
const ckeditorFields: NodeListOf<HTMLTextAreaElement> =
|
|
document.querySelectorAll("textarea[ckeditor]");
|
|
ckeditorFields.forEach((field: HTMLTextAreaElement): void => {
|
|
ClassicEditor.create(field, config).catch((error) => {
|
|
console.error(error.stack);
|
|
throw error;
|
|
});
|
|
});
|
|
//Fields.push.apply(Fields, document.querySelectorAll('.cf-fields textarea'));
|