How to enabling "safe html" in the description textarea of the validating-string-parameter-plugin?

86 views
Skip to first unread message

martinda

unread,
Jan 23, 2015, 9:15:00 PM1/23/15
to jenkin...@googlegroups.com
The textarea for the description of the String Parameter supports HTML.
How do I modify the code in the validating-string-parameter-plugin to obtain the same HTML support in the plugin description textarea?
My attempt is not successful:
https://github.com/martinda/validating-string-parameter-plugin/compare/safehtml

Can someone help?

Thanks,
Martin

martinda

unread,
Jan 25, 2015, 9:57:17 PM1/25/15
to jenkin...@googlegroups.com
Thanks to danielbeck, the part I was missing was to use the codemirror-mode:
<f:textarea name="parameter.description"
value="${instance.description}"
codemirror-mode="${app.markupFormatter.codeMirrorMode}"
codemirror-config="${app.markupFormatter.codeMirrorConfig}"
previewEndpoint="/markupFormatter/previewDescription" />

I have made it part of the following pull request:
https://github.com/jenkinsci/validating-string-parameter-plugin/pull/3

Reply all
Reply to author
Forward
0 new messages