From 84499a91095ed04f580abd9814cd6e465e65d0f0 Mon Sep 17 00:00:00 2001 From: Franco Pellegrini Date: Thu, 9 Aug 2018 15:27:43 -0300 Subject: [PATCH] Do not fail if initializing with another language or external script --- CHANGES.rst | 4 ++++ mockup/patterns/tinymce/pattern.js | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index a9a824317..318430b54 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -23,6 +23,10 @@ New features: Bug fixes: +- TinyMCE: Do not fail if initializing with another language or external script + https://github.com/plone/Products.CMFPlone/issues/2425 + [frapell] + - Get rid of obsolete ``X-UA-Compatible`` header. [hvelarde] diff --git a/mockup/patterns/tinymce/pattern.js b/mockup/patterns/tinymce/pattern.js index ff3783ab3..28ca85cfa 100644 --- a/mockup/patterns/tinymce/pattern.js +++ b/mockup/patterns/tinymce/pattern.js @@ -412,10 +412,6 @@ define([ tinymce.init(tinyOptions); self.tiny = tinymce.get(self.tinyId); - if (self.tiny !== null){ - self.tiny.initialized = true; - } - /* tiny really should be doing this by default * but this fixes overlays not saving data */ var $form = self.$el.parents('form');