Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

WYSIWYG editor issue?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-06-2008, 07:51 AM
  Vetrivel's Avatar 
Vetrivel Vetrivel is offline
 

eXpert
  
Join Date: Apr 2008
Posts: 398
 

Default 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?
Reply With Quote
  #2  
Old 10-06-2008, 07:58 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default 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.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 10-06-2008, 08:38 AM
  Vetrivel's Avatar 
Vetrivel Vetrivel is offline
 

eXpert
  
Join Date: Apr 2008
Posts: 398
 

Default Re: WYSIWYG editor issue?

Simply saying i need to duplicate the description column in product_modify to my xxx file.
how to do this?
Reply With Quote
  #4  
Old 10-06-2008, 08:48 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: WYSIWYG editor issue?

What, exactly, are you trying to achieve?
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 10-06-2008, 11:07 PM
  Vetrivel's Avatar 
Vetrivel Vetrivel is offline
 

eXpert
  
Join Date: Apr 2008
Posts: 398
 

Default 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?
Reply With Quote
  #6  
Old 10-07-2008, 07:17 AM
  Vetrivel's Avatar 
Vetrivel Vetrivel is offline
 

eXpert
  
Join Date: Apr 2008
Posts: 398
 

Default Re: WYSIWYG editor issue?

anybody?

how to use WYSIWYG editor ?
Reply With Quote
  #7  
Old 10-07-2008, 07:20 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default 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.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 03:16 PM.

   

 
X-Cart forums © 2001-2020