CKEditor. Here, the code I'm using to draw the image in the file
browser :
<?php echo $html->image('pool/' . $image, array('width' => 155,
'onclick' => 'window.opener.CKEDITOR.tools.callFunction(' .
$func_num . ', \'/mysite/img/pool/' . $image . '\')')); ?>
I expect it will produce something like this :
<img src="/mysite/img/pool/my_image.jpg" width="155"
onclick="window.opener.CKEDITOR.tools.callFunction(1, '/mysite/img/
pool/my_image.jpg')" alt="" />
but instead, CakePHP "parse" the single quote into HTML encode :
<img src="/mysite/img/pool/my_image.jpg" width="155"
onclick="window.opener.CKEDITOR.tools.callFunction(1, '/mysite/
img/pool/my_image.jpg')" alt="" />
Is there anyway to prevent this?
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
No comments:
Post a Comment