江户川丶柯南

导航

< 2025年2月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 1
2 3 4 5 6 7 8

统计

ckeditor 图片上传功能配置

1. /ckeditor/plugins/image/dialogs/image.js

  搜索 upload 把 hidden:!0 改为 hidden:0

2. config.js 新增配置项

config.image_previewText=' '; //预览区域显示内容
config.filebrowserUploadUrl="/ckeditor/upload";  //图片上传地址

3. 图片上传 接口 预览图片功能实现

$fn = isset($_GET['CKEditorFuncNum']) ? intval($_GET['CKEditorFuncNum']) : 0;
$img = '图片地址';
echo '<script type="text/javascript">window.parent.CKEDITOR.tools.callFunction('.$fn.',"'.$img.'", "")</script>';

 

posted on   hfshu  阅读(858)  评论(0编辑  收藏  举报

点击右上角即可分享
微信分享提示