Using wicketstuff tinymce 1.4.1 attached to a TextArea, it seems I cannot get
it to stop escaping the resulting HTML:
TextArea<String> textArea = new
TextArea<String>("threadSubjectTextInput", new Model<String>(""));
textArea.setEscapeModelStrings(false);
TinyMCESettings settings = new TinyMCESettings();
settings.setToolbarLocation(TinyMCESettings.Location.top);
TinyMceBehavior behavior = new TinyMceBehavior(settings);
textArea.add(behavior);
Obtaining value:
String article =
getForm().get("threadSubjectTextInput").getDefaultModelObjectAsString();
Setting property on JCR node:
articleNode.setProperty("articleText", article);
Rendering the output from the Jackrabbit Node:
articleItem.add(new Label("forumArticle",
article.getArticleText()).setEscapeModelStrings(false));
Is there some other code which might escape the HTML?
Med vennlig hilsen
TOR IVER WILHELMSEN
Senior systemutvikler
Arrive AS
T (+47) 48 16 06 18
E-post: [email protected]
http://www.arrive.no
http://servicedesk.arrive.no