在我的PHP浏览文件中,当结果返回时我有JavaScript错误
未捕获的SyntaxError:意外的令牌}
代码:
$result ="
<a onclick='window.parent.CKEDITOR.tools.callFunction('$funcNum', '$url', '$message')'>
<img src='$url' style='width:200px; height=200px; float right; padding 20px; background-color:#CCC; border:3px solid #CCC;' />
</a>
";
echo $result;
当我点击图像添加到CKeditor时我有Uncaught SyntaxError:Unexpected token}
并且有ckeditor配置:
CKEDITOR.replace( 'content', {
language: 'de',
uiColor: '#9AB8F3',
skin: 'bootstrapck',
filebrowserBrowseUrl: '/content/tab:filelist',
filebrowserUploadUrl: '/content/tab:file',
filebrowserImageBrowseUrl: 'content/tab:imagelist',
filebrowserImageUploadUrl: 'content/tab:uploadimage'
});