Clone the tinyMCE config to prevent referenced data from changing during init. Fixes #12461
This commit is contained in:
parent
5b83fa16a8
commit
dc47a3ef7d
2 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue