Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2009-01-26 06:24:19

garvinhicking
New member
Registered: 2008-12-19
Posts: 5

Allow script tags in Xinha WYSIWYG-Textarea

Hi!

I couldn't find an answer to this in either the forums nor the Xinha project page, so maybe you can help me.

I want to allow editors to put <script>...</script> stuff into a Xinha-ized textarea. People need to switch into the HTML-Mode through the Xinha Button, and enter it. I believe this has worked in htmlarea previously. Currently, when switching back to WYSIWYG mode, the <script> is removed.

Is there any way (like a config directive) to allow this kind of arbitrary code insertion?

Regards,
Garvin

Offline

#2 2009-01-26 08:09:40

ray
Xinha Administrator
From: Germany
Registered: 2005-03-23
Posts: 521
Website

Re: Allow script tags in Xinha WYSIWYG-Textarea

Hi garvin,
You can either use http://xinha.raimundmeyer.de/JSdoc/Xinh … ripScripts
or try the PreserveScripts plugin

Offline

#3 2009-01-26 09:12:04

garvinhicking
New member
Registered: 2008-12-19
Posts: 5

Re: Allow script tags in Xinha WYSIWYG-Textarea

Hi!

Oh, I must've used the wrong keywords to search for the API documentation. I'm terribly sorry I didn't find the link you gave me.

It works perfectly fine, many thanks for the quick help and support - I really appreciate your efforts. :-)

Best regards,
Garvin

Offline

#4 2009-01-29 17:37:31

ray
Xinha Administrator
From: Germany
Registered: 2005-03-23
Posts: 521
Website

Re: Allow script tags in Xinha WYSIWYG-Textarea

you can use the PreserveScripts plugin to preserve PHP code

Offline

#5 2009-12-23 17:19:14

cafevino
New member
Registered: 2009-12-23
Posts: 2

Re: Allow script tags in Xinha WYSIWYG-Textarea

Where is the download for the PreserveScripts plugin? Or documentation how to use it?

Offline

Board footer

Powered by FluxBB