From 2fb4fd86dad6d11b233fdd4f9c87663e9893229f 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 5a4d2be77..8e3a763bf 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');