Clone the tinyMCE config to prevent referenced data from changing during init. Fixes #12461

This commit is contained in:
colin 2015-12-08 10:38:02 -08:00
parent 5b83fa16a8
commit dc47a3ef7d
2 changed files with 2 additions and 1 deletions

View file

@ -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;