X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   WYSIWYG editor issue? (https://forum.x-cart.com/showthread.php?t=42797)

Vetrivel 10-06-2008 07:51 AM

WYSIWYG editor issue?
 
hi ,
i made a custom mod in which i added a ({include file="main/textarea.tpl" name="description" cols=65 rows=15}) to get the WYSIWYG editor. but it didnt work for me.

in php file i added this too:
define('USE_TRUSTED_POST_VARIABLES',1);
$trusted_post_variables = array("description");

Whats else i need to do to support html tags?

balinor 10-06-2008 07:58 AM

Re: WYSIWYG editor issue?
 
Not sure what you are trying to do, but you can't include something partially with smarty and partially with html. If you are trying to include a textarea, just use the html for the textarea, don't try to call a template AND a textarea.

Vetrivel 10-06-2008 08:38 AM

Re: WYSIWYG editor issue?
 
Simply saying i need to duplicate the description column in product_modify to my xxx file.
how to do this?

balinor 10-06-2008 08:48 AM

Re: WYSIWYG editor issue?
 
What, exactly, are you trying to achieve?

Vetrivel 10-06-2008 11:07 PM

Re: WYSIWYG editor issue?
 
i need to input the text with styles.this make it easy to display in front end.
so , i added WYSIWYG editor.
something like this in tpl file:
{include file="main/textarea.tpl" name="description" cols=65 rows=15}

when i save the content then it just omit the tags.
say for ex:
if i typed "<b>vetri</b>"
thn i hit save button
saved data which look like: vetri

where is the"<b></b>" tags?

Vetrivel 10-07-2008 07:17 AM

Re: WYSIWYG editor issue?
 
anybody?

how to use WYSIWYG editor ?

balinor 10-07-2008 07:20 AM

Re: WYSIWYG editor issue?
 
I'm still lost as to what you are up to Vetriviel - if you use the wysiwyg editor, you can't use html - if you use the core editor, you use html. WYSIWYG simply creates the html for you. So click WYSIWYG, highlight the text you want to bold, and click on the big black B button.


All times are GMT -8. The time now is 11:30 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.