Mod: WYSIWYG Default

Hi,



If you want to have the WYSIWYG Editor load by default, below you will find the steps to accomplish this:



In order to change the mentioned functionality you should do the following:

  • Open the “wysiwyg.tpl” file located in the “skins/basic/admin/common_templates” directory and replace this part of the code:



{include file="buttons/button.tpl" but_text=$lang.edit_in_visual_editor but_onclick="jQuery.openEditor(this.id.str_replace('on_b', ''));" but_role="simple" but_meta="text-button cm-combination" but_id="on_b`$id`"}
{include file="buttons/button.tpl" but_text=$lang.view_source but_onclick="jQuery.openEditor(this.id.str_replace('off_b', ''));" but_role="simple" but_meta="text-button cm-combination hidden" but_id="off_b`$id`"}




with this one:



{include file="buttons/button.tpl" but_text=$lang.edit_in_visual_editor but_onclick="jQuery.openEditor(this.id.str_replace('on_b', ''));" but_role="simple" but_meta="text-button cm-combination cm-activate-wysiwyg hidden" but_id="on_b`$id`"}
{include file="buttons/button.tpl" but_text=$lang.view_source but_onclick="jQuery.openEditor(this.id.str_replace('off_b', ''));" but_role="simple" but_meta="text-button cm-combination" but_id="off_b`$id`"}
- Save the file.


  • Open the “core.js” file located in the “js” directory of your CS-Cart and replace this part of the code:


$(window).bind('beforeunload', function(e) {
setTimeout(function(){
jQuery.toggleStatusBox('show', lang['text_page_loading']);
}, DELAY);
});
with this one:



$(window).bind('beforeunload', function(e) {
setTimeout(function(){
jQuery.toggleStatusBox('show', lang['text_page_loading']);
}, DELAY);
});
$('.cm-activate-wysiwyg').click();
- Save the file.



Regards

Thanks for your Mod and you share!

Great MOD!!!

THANK YOU VERY MUCH :wink:

any known solution for version 2.1.1 ?