I'm trying to make a plugin to use reCAPTCHA with my implementation of ckeditor, which means that I need to insert html into the current position of the pointer. But no matter how I try something doesn't work. if I use editor.insertHtml both the javascript and noscript tag is either stripped away or made with htmlcodes. I've tried to make an element with editor.document.createElement('div'), and then insert the code with appendHtml to that object. And that works with the noscript tag, but not with the script include because the browser then runs the script and ckeditor generates som javascript errors and dies... Any idea how to include this code?
<script type="text/javascript" src="http://www.google.com/recaptcha/api/challenge?k=your_public_key"> </script> <noscript> <iframe src="http://www.google.com/recaptcha/api/noscript?k=your_public_key" height="300" width="500" frameborder="0"></iframe><br> <textarea name="recaptcha_challenge_field" rows="3" cols="40"> </textarea> <input type="hidden" name="recaptcha_response_field" value="manual_challenge"> </noscript>
Re: insertHtml and javascript
Re: insertHtml and javascript