From 1d47d3d94ef5b1ed0ae88a25be42705a6d8929e4 Mon Sep 17 00:00:00 2001 From: yflory Date: Fri, 23 Apr 2021 11:12:45 +0200 Subject: [PATCH] Prevent type error from CkEditor widgets --- www/pad/inner.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/www/pad/inner.js b/www/pad/inner.js index b442de0b5..c78811b07 100644 --- a/www/pad/inner.js +++ b/www/pad/inner.js @@ -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');