STK: fckEditor is not working: free marker template

View: New views
3 Messages — Rating Filter:   Alert me  

STK: fckEditor is not working: free marker template

by Leo Stanley-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

HI All,
 
i have used the existing Standard templating kit to create my site.
All things are working fine but the fckEditor is not working properly.
 
When i add the elements in editor it works fine.
But when i render the page it prints as a HTML text.
 
Example:
<p><strong><em>Buzznet</em> is a </strong>global softw<strong> service</strong>s company which
 
can any body help me?
Thanks in advance.
 
Thanks & Regards,
Leo Stanley.



----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <user-list-unsubscribe@...>
----------------------------------------------------------------

Parent Message unknown Re: STK: fckEditor is not working: free marker template

by OliMagnolia :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Leo

If you don't want to process the value within a model class, you can simply use:
${stk.decode(content).text} in your freemarker template to render the value.

Hope that helps,
Olivier

HI All,
 
i have used the existing Standard templating kit to create my site.
All things are working fine but the fckEditor is not working properly.
 
When i add the elements in editor it works fine.
But when i render the page it prints as a HTML text.
 
Example:
<p><strong><em>Buzznet</em> is a </strong>global softw<strong> service</strong>s company which
 
can any body help me?
Thanks in advance.
 
Thanks & Regards,
Leo Stanley.



----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <user-list-unsubscribe@...>
----------------------------------------------------------------




----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <user-list-unsubscribe@...>
----------------------------------------------------------------

Re: STK: fckEditor is not working: free marker template

by fraso :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi  Leo,
if you render fck content in freemarker template, you have to decode the content.

For example: ${stk.decode(content).text}

By default all content rendering in freemarker are encoded.

Regards Frank

Leo Stanley-3 wrote:
HI All,
 
i have used the existing Standard templating kit to create my site.
All things are working fine but the fckEditor is not working properly.
 
When i add the elements in editor it works fine.
But when i render the page it prints as a HTML text.
 
Example:
<p><strong><em>Buzznet</em> is a </strong>global softw<strong>
service</strong>s company which
 
can any body help me?
Thanks in advance.
 
Thanks & Regards,
Leo Stanley.

----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <user-list-unsubscribe@magnolia-cms.com>
----------------------------------------------------------------