Prevent type error from CkEditor widgets

pull/1/head
yflory 2021-04-23 11:12:45 +02:00 committed by ansuz
parent 9d6d5b3ed3
commit 1d47d3d94e
1 changed files with 5 additions and 1 deletions
www/pad

View File

@ -984,7 +984,11 @@ define([
displayMediaTags(framework, inner, mediaTagMap);
// MEDIATAG: Initialize mediatag widgets inserted in the document by other users
editor.widgets.checkWidgets();
try {
editor.widgets.checkWidgets();
} catch (e) {
console.error(e);
}
if (framework.isReadOnly()) {
var $links = $inner.find('a');