Try to revert some of your single quote as double qoutes, like:
[code]
> <?php echo $html->image('pool/' . $image, array('width' => 155,
> 'onclick' => 'window.opener.CKEDITOR.tools.callFunction(' .
> $func_num . ", '/mysite/img/pool/" . $image . "')")); ?>
[/code]
Enjoy,
John
On Feb 4, 6:19 am, Furuno <[email protected]> wrote:
> Ok, so I want to pass an image from my custom file browser to
> 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 [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en