TinyMCE + TextArea + Jackrabbit

2010-05-04 Thread Wilhelmsen Tor Iver
Using wicketstuff tinymce 1.4.1 attached to a TextArea, it seems I cannot get 
it to stop escaping the resulting HTML:

TextAreaString textArea = new 
TextAreaString(threadSubjectTextInput, new ModelString());
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: toriv...@arrive.no
http://www.arrive.no
http://servicedesk.arrive.no





SV: TinyMCE + TextArea + Jackrabbit

2010-05-04 Thread Wilhelmsen Tor Iver
 Using wicketstuff tinymce 1.4.1 attached to a TextArea, it seems I
 cannot get it to stop escaping the resulting HTML:
 
 TextAreaString textArea = new
 TextAreaString(threadSubjectTextInput, new ModelString());
 textArea.setEscapeModelStrings(false);
 TinyMCESettings settings = new TinyMCESettings();
 settings.setToolbarLocation(TinyMCESettings.Location.top);
 TinyMceBehavior behavior = new TinyMceBehavior(settings);
 textArea.add(behavior);

Forget it, it was code from a copy  paste developer, worked when I added the 
escape call to the other copy of this code... 

- Tor Iver

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org