Friday, August 7, 2009

Grails : How to set value in FckEditor

Hi Friends,

I was using fckeditor plugin, where I found that when I wanted to display the data from the database in the fckeditor, it appeared but it displayed the html code as well and with no formatting as it didn't render the html code. So the workaround I found is shared below :

< fckeditor:editor
id="content" name="content"
width="600"
height="400"
toolbar="Standard"
fileBrowser="default"
value="${myBean.content}"
>
${myBean.content}
< /fckeditor:editor >

Hope this helped.

Cheers!
~~Amit Jain~~
amitjain1982@gmail.com

No comments:

Post a Comment