This commit is contained in:
the-djmaze 2022-11-07 14:19:16 +01:00
parent 857ab52a5e
commit 4ec7070ffa
10 changed files with 26 additions and 19 deletions

View file

@ -634,9 +634,9 @@ export class HtmlEditor {
onReady = onReady ? [onReady] : [];
this.onReady = fn => onReady.push(fn);
// TODO: make 'which' user configurable
const which = 'CKEditor4',
wysiwyg = WYSIWYGS.find(item => which == item[0])
|| WYSIWYGS.find(item => 'Squire' == item[0]);
// const which = 'CKEditor4',
// wysiwyg = WYSIWYGS.find(item => which == item[0]) || WYSIWYGS.find(item => 'Squire' == item[0]);
const wysiwyg = WYSIWYGS.find(item => 'Squire' == item[0]);
wysiwyg[1](this, element, editor => {
this.editor = editor;
editor.on('blur', () => this.blurTrigger());