开发者

rich:editor formatting

I am using rich:editor to create the content in my application. I am storing the content data in a string property in backend bean and persisting it into database using hibernate.开发者_高级运维 The problem is whenever i am applying any formatting style it is alos coming up with the content and stored into database. i want to save the data in html formate and view it again in rich:modalpanel. please help.


eg. You can use

  h:outputText value="#{question.qText}" escape="false" 

The value="#{question.qText}" is text stored as html :). and escape="false" does the rest.


Hey this is my code for test case :                                

rich:editor id="editor" width="525" height="260" value="#{bean.qText}" theme="advanced" rich:editor

and the result is

Science is ........................... .

for science red bold

:: possibly you are using seam

useSeamText="true" This link might be helpful

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜