Forum closed. New forum available at http://community.wymeditor.org/

Editing Smarty Templates

Support forum for WYMeditor.

Editing Smarty Templates

Postby bkonia on Sun Jan 20, 2008 12:37 am

I would like to use WYMeditor to edit Smarty templates. It works perfectly except that it attempts to "clean" code contained within the Smarty delimiters. Is there a way that I can tell WYMeditor to ignore any code contained with certain delimiters. For example, a typical Smarty tag might look like this:

{if $object->item['property'] > 0}

WYMeditor would convert this to:

{if $object->item['property'] > 0}

I realize that the content within the tag is not valid XHTML, but the whole point of Smarty is to generate dynamic content, so I want WYMeditor to ignore content contained within Smarty tags.
Bradley S Konia
bkonia
 
Posts: 1
Joined: Sun Jan 20, 2008 12:20 am

Postby jfh on Wed Jan 23, 2008 9:06 pm

You should customize the Lexer/Parser. Please take a look at
http://lists.wymeditor.org/pipermail/wy ... 00048.html
for more info (sorry, no official doc for the moment).
User avatar
jfh
Site Admin
 
Posts: 370
Joined: Sat Sep 23, 2006 8:43 pm
Location: Belgium


Return to Support

Who is online

Users browsing this forum: No registered users and 2 guests