======================================================
X-Cart reBOOT reDUX Template - Remove Redactor Editors
======================================================
v1 - 21/12/22
1) In /skin/common_files/modules/Redactor/redactor.tpl
REPLACE...
$R('textarea.redactorme, textarea[name=descr], textarea[name=fulldescr], textarea#product_lngdescr, textarea#product_lngfulldescr, textarea[name=pagecontent], textarea[name=description], textarea[name=seo], textarea#message', {
WITH...
//$R('textarea.redactorme, textarea[name=descr], textarea[name=fulldescr], textarea#product_lngdescr, textarea#product_lngfulldescr, textarea[name=pagecontent], textarea[name=description], textarea[name=seo], textarea#message', {
$R('textarea.redactorme', {
-----------------------------------------------------
[[ PRODUCT SHORT & LONG DESCRIPTIONS ]]
2) In /skin/reboot/main/product_details.tpl
REPLACE...
{if $geid ne ''} | {/if}
{$lng.lbl_short_description}* :
{if $top_message.fillerror ne "" and ($product.descr eq "" or $product.xss_descr eq "Y")} << REQUIRED{/if}
|
{if $geid ne ''} | {/if}
{$lng.lbl_det_description}:
{if $product.xss_fulldescr eq "Y"} << WARNING{/if}
|
WITH...
{if $geid ne ''} | {/if}
{$lng.lbl_short_description}* :
{include file="main/textarea.tpl" name="descr" cols=45 rows=8 data=$product.descr width="100%" btn_rows=4 entity_id=$product.productid entity_type='product_descr'}
{if $top_message.fillerror ne "" and ($product.descr eq "" or $product.xss_descr eq "Y")}<<{/if}
|
{if $geid ne ''} | {/if}
{$lng.lbl_det_description}:
{include file="main/textarea.tpl" name="fulldescr" cols=45 rows=12 class="InputWidth" data=$product.fulldescr width="100%" btn_rows=4 entity_id=$product.productid entity_type='product_fulldescr'}
{if $product.xss_fulldescr eq "Y"}<<{/if}
|
-----------------------------------------------------
[[ CATEGORY DESCRIPTIONS ]]
3) In /skin/reboot/admin/main/category_modify.tpl
REPLACE...
{$lng.lbl_description}: |
|
|
Second {$lng.lbl_description}: |
|
|
WITH...
{$lng.lbl_description}: |
|
{include file="main/textarea.tpl" name="description" cols=65 rows=15 data=$current_category.description entity_id=$current_category.categoryid entity_type='category_description'}
|
Second {$lng.lbl_description}: |
|
{include file="main/textarea.tpl" name="seo" cols=65 rows=15 data=$current_category.seo entity_id=$current_category.categoryid entity_type='category_description'}
|
-----------------------------------------------------
[[ STATIC PAGES CONTENT ]]
4) In /skin/reboot/admin/main/page_edit.tpl
REPLACE...
{if $level eq "E"}
{*{include file="main/textarea.tpl" name="pagecontent" cols=50 rows=30 data=$page_content btn_rows=4 entity_id=$pageid entity_type='pagecontent_E' skip_escape=false}*}
{else}
{*{include file="main/textarea.tpl" name="pagecontent" cols=50 rows=30 data=$page_content btn_rows=4 html_editor_mode="XHTML" entity_id=$pageid entity_type='pagecontent_R'}*}
{/if}
WITH...
{if $level eq "E"}
{**}
{include file="main/textarea.tpl" name="pagecontent" cols=50 rows=30 data=$page_content btn_rows=4 entity_id=$pageid entity_type='pagecontent_E' skip_escape=false}
{else}
{**}
{include file="main/textarea.tpl" name="pagecontent" cols=50 rows=30 data=$page_content btn_rows=4 html_editor_mode="XHTML" entity_id=$pageid entity_type='pagecontent_R'}
{/if}
-----------------------------------------------------
[[ MANUFACTURERS DESCRIPTIONS ]]
5) In /skin/reboot/modules/Manufacturers/manufacturers.tpl
REPLACE...
{$lng.lbl_description}: |
|
|
WITH...
{$lng.lbl_description}: |
|
{include file="main/textarea.tpl" name="descr" cols=55 rows=10 class="InputWidth" data=$manufacturer.descr width="80%" btn_rows=3 entity_id=$manufacturer.manufacturerid entity_type='manufacturer_descr'}
|
-----------------------------------------------------
6) Clear the template cache.
Done.