Я хочу вызвать изменения высоты в текстовой области ckeditor5. На сайте я обнаружил событие «change: height», но оно не запускается.
Вот мой код:
ClassicEditor
.create(document.querySelector('#Comment'),{
toolbar: [ 'heading', '|', 'bold', 'italic', 'blockQuote' ],
})
.then(editor => {
console.log(editor);
Editor = editor;
console.log(Editor);
editor.model.document.on( 'change:data', () => {
} );
editor.ui.focusTracker.on('change:isFocused', (evt, name, isFocused) => {
} );
editor.model.document.on( 'change:height', (eventInfo, name, value, oldValue) => {
alert('height'); // ?????
} );
})
.catch(error => {
console.error(error);
});
}
Но это не работает ...
У вас есть идеи, как это исправить?
Спасибо за свое время и хорошего дня:)