You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Wilhelmsen Tor Iver <To...@arrive.no> on 2010/05/04 14:10:09 UTC

TinyMCE + TextArea + Jackrabbit

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: toriverw@arrive.no
http://www.arrive.no
http://servicedesk.arrive.no




SV: TinyMCE + TextArea + Jackrabbit

Posted by Wilhelmsen Tor Iver <To...@arrive.no>.
> 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);

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-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org