Hello,
I'm using ckeditor to edit a file with custom tags. In particular, there is a script tag with a particular kind of script (that's not a type="text/javascript" script tag) and the browser is actually unable to process it (afaik, so, there is actually no danger in accidentally executing it).
I need to correctly have that tag inside the document structure, because I need to read the script content and use it in the editor's processing. Now, when I read the document source, the script is <!-- {cke_protected} ... -->, which which is no good for me.
How can I avoid protection of my particular type="blah" of script tags? Or how can I un-protect the tags explicitly?
Thanks.
~Aki
I'm using ckeditor to edit a file with custom tags. In particular, there is a script tag with a particular kind of script (that's not a type="text/javascript" script tag) and the browser is actually unable to process it (afaik, so, there is actually no danger in accidentally executing it).
I need to correctly have that tag inside the document structure, because I need to read the script content and use it in the editor's processing. Now, when I read the document source, the script is <!-- {cke_protected} ... -->, which which is no good for me.
How can I avoid protection of my particular type="blah" of script tags? Or how can I un-protect the tags explicitly?
Thanks.
~Aki
Re: How to handle protected script tags?
Re: How to handle protected script tags?
Thanks
Re: How to handle protected script tags?
Re: How to handle protected script tags?
From plugins/htmldataprocessor/plugin.js
The script protection is not loaded explicitly in the protectedSource array, actually:
config.protectedSource.indexOf(/<script[\s\S]*?<\/script>/gi); // returns -1
But that's the right source, because commenting it results in unprotected script tags.
Now I'm using a modified source, commenting that script regex, but I think it's wrong so I'm proposing a change, so I filed a ticket: http://dev.ckeditor.com/ticket/6002
Thanks for the help
~Aki