From 2e0021478333bb5a8a8ed76c42c2844fce1e98f0 Mon Sep 17 00:00:00 2001 From: ansuz Date: Thu, 23 Nov 2017 16:57:01 +0100 Subject: [PATCH] drop unreachable code --- www/pad/wysiwygarea-plugin.js | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/www/pad/wysiwygarea-plugin.js b/www/pad/wysiwygarea-plugin.js index 7a0d08788..0836428e9 100644 --- a/www/pad/wysiwygarea-plugin.js +++ b/www/pad/wysiwygarea-plugin.js @@ -487,16 +487,6 @@ define(['/api/config'], function (ApiConfig) { CKEDITOR.tools.callFunction(fw._.frameLoadedHandler, _iframe.contentWindow); }, 10); return; - - // Work around Firefox bug - error prune when called from XUL (http://dev.ckeditor.com/ticket/320), - // defer it thanks to the async nature of this method. - try { - doc.write( data ); - } catch ( e ) { - setTimeout( function() { - doc.write( data ); - }, 0 ); - } } }, @@ -737,4 +727,4 @@ CKEDITOR.config.disableNativeSpellChecker = true; * @member CKEDITOR.editor * @param {CKEDITOR.editor} editor This editor instance. * @param {CKEDITOR.dom.element} data The element being added. - */ \ No newline at end of file + */