开发者

How to allow using javascript in RichHtmlField control?

Is it possible to set up RichHtmlField control to allow javasc开发者_JAVA技巧ript in HTML? I mean I need to insert some script into field content, but the code is removed from source after submit.


I don't think there is a way of inserting javascript into the RichHtmlField. Usually in this situation, the following options are available:

a) If you're just trying to get a piece of javascript anywhere on the page, you could insert a Content Editor Web Part. It allows you to insert javascript.

b) If you're stuck because you promised RichHtmlField javascript insertion to your client (or other common scenarios), you could purchase Telerik RadEditor.
It should get around the issue.

Hope this helps.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜