jsf - set content of tinymce with a string of html -


i have jsf renderer uses responsewriter generate jsf page . in class create string contains html code , :

 string s = "<b>hello</b> <i>world</i>" . 

when create tinymce editor , set value of responsewriter :

   responsewriter.writetext(value, null); 

it show same string (showing html tag) instead of html format of it.

i know it's wrong use writetext writing html don't know use instead.

try setcontent.

responsewriter.setcontent(s); 

more information here: http://www.tinymce.com/wiki.php/api3:method.tinymce.editor.setcontent


Comments

Popular posts from this blog

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

node.js - How to abort query on demand using Neo4j drivers -