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:
- Save the file.
{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`"}
- Open the “core.js” file located in the “js” directory of your CS-Cart and replace this part of the code:
with this one:
$(window).bind('beforeunload', function(e) {
setTimeout(function(){
jQuery.toggleStatusBox('show', lang['text_page_loading']);
}, DELAY);
});
- Save the file.
$(window).bind('beforeunload', function(e) {
setTimeout(function(){
jQuery.toggleStatusBox('show', lang['text_page_loading']);
}, DELAY);
});
$('.cm-activate-wysiwyg').click();
Regards