diff --git a/admin-dev/themes/default/template/controllers/products/form.tpl b/admin-dev/themes/default/template/controllers/products/form.tpl index 23c782e17..5bafc06ab 100644 --- a/admin-dev/themes/default/template/controllers/products/form.tpl +++ b/admin-dev/themes/default/template/controllers/products/form.tpl @@ -28,6 +28,9 @@ {block name="autoload_tinyMCE"} // change each by click to load only on click + + $("#product-tab-content-Informations").bind('loaded', function(){ + $(".autoload_rte").each(function(e){ tinySetup({ mode :"exact", @@ -56,10 +59,11 @@ textarea.parent('div').find('span.counter').html(' '); } }); - } }); - }) + }); +}); +$("#product-tab-content-Informations").trigger('loaded'); {/block} {block name="defaultForm"} @@ -75,6 +79,8 @@
diff --git a/admin-dev/themes/default/template/helper/form/form.tpl b/admin-dev/themes/default/template/helper/form/form.tpl index c9dfe3d45..2e5b53f2e 100644 --- a/admin-dev/themes/default/template/helper/form/form.tpl +++ b/admin-dev/themes/default/template/helper/form/form.tpl @@ -398,7 +398,7 @@ theme_advanced_buttons3 : "", theme_advanced_buttons4 : "", }); - }) + }); {/block} });