// update tinyMCE setup on product page

This commit is contained in:
tDidierjean committed 2012-05-03 15:37:32 +00:00
1 parent 68f6ff605d
commit 2ea3b427db
1 file changed
-7
@@ -29,19 +29,13 @@
{block name="autoload_tinyMCE"} {block name="autoload_tinyMCE"}
// Execute when tab Informations has finished loading // Execute when tab Informations has finished loading
tabs_manager.onLoad('Informations', function(){ tabs_manager.onLoad('Informations', function(){
// change each by click to load only on click
$(".autoload_rte").each(function(e){
tinySetup({ tinySetup({
mode :"exact",
editor_selector :"autoload_rte", editor_selector :"autoload_rte",
elements : $(this).attr("id"),
theme_advanced_buttons1 : "newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,fontselect,fontsizeselect", theme_advanced_buttons1 : "newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,fontselect,fontsizeselect",
theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,,|,forecolor,backcolor", theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,,|,forecolor,backcolor",
theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,media,|,ltr,rtl,|,fullscreen", theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,media,|,ltr,rtl,|,fullscreen",
theme_advanced_buttons4 : "styleprops,|,cite,abbr,acronym,del,ins,attribs,pagebreak", theme_advanced_buttons4 : "styleprops,|,cite,abbr,acronym,del,ins,attribs,pagebreak",
setup : function(ed) { setup : function(ed) {
{* Count the total number of the field *}
ed.onInit.add(function(ed) ed.onInit.add(function(ed)
{ {
if (typeof ProductMultishop.load_tinymce[ed.id] != 'undefined') if (typeof ProductMultishop.load_tinymce[ed.id] != 'undefined')
@@ -71,7 +65,6 @@
} }
}); });
}); });
});
{/block} {/block}
{block name="defaultForm"} {block name="defaultForm"}