From a117901df5f8259f7f0d4aea7deab6387ab664f9 Mon Sep 17 00:00:00 2001 From: colin Date: Tue, 8 Dec 2015 10:38:02 -0800 Subject: [PATCH] Clone the tinyMCE config to prevent referenced data from changing during init. Fixes #12461 --- docs/changelog/7.x.x.txt | 1 + www/extras/wobject/Carousel/carousel.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index 162687472..5cd54fa7d 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -1,6 +1,7 @@ 7.10.30 - fixed: Do not generate the Not Found page when JS or CSS is requested. In admin mode, this is bypassed so that admins can see which pages are really missing and can easily add them. - fixed: Allow IS NULL/IS NOT NULL queries in the Asset Report. + - fixed #12461: Carousel fails to initial the rich editor in multiple tabs 7.10.29 - fixed #12454: Email to Group ignores the From field diff --git a/www/extras/wobject/Carousel/carousel.js b/www/extras/wobject/Carousel/carousel.js index 617924515..a04e42692 100644 --- a/www/extras/wobject/Carousel/carousel.js +++ b/www/extras/wobject/Carousel/carousel.js @@ -75,7 +75,7 @@ WebGUI.Carousel.Editor.prototype.addTab ta.appendChild( document.createTextNode( data.text ) ); el.appendChild( ta ); - var conf = this.mceConfig; + var conf = JSON.parse(JSON.stringify(this.mceConfig)); conf.mode = "exact"; conf.elements = ta.name;