Embedding javascript

14 views
Skip to first unread message

zakijuma

unread,
Aug 4, 2015, 8:11:29 AM8/4/15
to Hippo Community
Hi,

I want to add javascript in a document via xinha editor.

I have followed the steps in this link:
http://www.onehippo.org/7_8/library/concepts/document-types/configure-the-rich-text-fields-xinha.html

and added
hippohtmlcleaner:name: script
hippohtmlcleaner:attributes: id, type, language, src, charset, defer (all optional)

but as I write this test in xinha:
 <script> alert ('hello world'); </ script>.

I see that back as text on the website.

Are there other things I still need to configure?

Regards,
Zaki

zakijuma

unread,
Aug 5, 2015, 5:26:26 AM8/5/15
to Hippo Community
Oops my fault. of course I had to switch to toggel html source and then add the javascript code.
Reply all
Reply to author
Forward
0 new messages