Fixed javascript error caused by CKEDITOR

This was not really a problem, just annoying. But now it is fixed.
Fixes issue #457
This commit is contained in:
Jan Böhmer 2024-01-15 20:39:27 +01:00
parent f83d4103a6
commit 1da2b9eecb

View file

@ -70,7 +70,9 @@ export default class extends Controller {
editor_div.classList.add(...new_classes.split(","));
}
console.log(editor);
//This return is important! Otherwise we get mysterious errors in the console
//See: https://github.com/ckeditor/ckeditor5/issues/5897#issuecomment-628471302
return editor;
})
.catch(error => {
console.error(error);