Since the lasts changes with the introduction of the tinymce_config parameter it was not possible to overwrite a sub-part of the theme parameters.
Relying on the normalization to define the default mandatory parameters was breaking the merging process when using with prepend configuration (for example, overwriting the toolbar parameter of the simple theme was producing an empty configuration). Secondly, the merging of this parameter in javascript was failing as well.
This PR define the default configuration for TinyMCE at validation time (after the merging process) and fix the merging process in javascript by using a similar $.extend() function in bare JS.
As always, this changes are tested successfully from sf2.3 to 2.8, with and without jQuery.
I hope that you can review that quickly and add a new tag as it's blocking for me. Thanks in advance.
Since the lasts changes with the introduction of the
tinymce_config
parameter it was not possible to overwrite a sub-part of thetheme
parameters.Relying on the normalization to define the default mandatory parameters was breaking the merging process when using with prepend configuration (for example, overwriting the toolbar parameter of the simple theme was producing an empty configuration). Secondly, the merging of this parameter in javascript was failing as well.
This PR define the default configuration for TinyMCE at validation time (after the merging process) and fix the merging process in javascript by using a similar $.extend() function in bare JS.
As always, this changes are tested successfully from sf2.3 to 2.8, with and without jQuery. I hope that you can review that quickly and add a new tag as it's blocking for me. Thanks in advance.