当前位置:网站首页>Phpcms upgrade editor method -- simple and effective
Phpcms upgrade editor method -- simple and effective
2022-06-24 15:11:00 【Champion Baoda】
1、 First go to the official website to download the latest version http://ckeditor.com/download;
2、 Download the compressed package, decompress it, and put it into /statics/js In the folder ;
3、 open phpcms\libs\classes\attachment.class.php, modify :
/**
* ck The editor returns
* @param $fn
* @param $fileurl route
* @param $message display information
*/
function mkhtml($fn,$fileurl,$message) {
//$str='<script type="text/javascript">window.parent.CKEDITOR.tools.callFunction('.$fn.', \''.$fileurl.'\', \''.$message.'\');</script>';
$arr=array('fileName'=>'image.png','uploaded'=>1,'url'=>$fileurl);
//exit($str);
exit(json_encode($arr));Just make it exactly the same .
Get it done .
边栏推荐
- leetcode 139. Word break word split (medium)
- Keras深度学习实战(11)——可视化神经网络中间层输出
- R语言实战应用精讲50篇(二十三)-贝叶斯理论重要概念: 可信度Credibility, 模型Models, 和参数Parameters
- MySQL log management, backup and recovery
- 在宇宙的眼眸下,如何正确地关心东数西算?
- Brief discussion on the implementation framework of enterprise power Bi CI /cd
- Oracle RAC configuration multipathing
- Alibaba OSS object storage service
- Common sense knowledge points
- update+catroot+c000021a+critical service failed+drivers+intelide+viaide+000000f
猜你喜欢

List of PostgreSQL

Virtual machines on the same distributed port group but different hosts cannot communicate with each other

Bert-whitening 向量降维及使用

Go language - use of goroutine coroutine
An accident caused by a MySQL misoperation, and the "high availability" cannot withstand it!

laravel8使用faker调用工厂填充数据

Left hand code, right hand open source, part of the open source road

Linux 安装 CenOS7 MySQL - 8.0.26

Keyword of ES mapping; Term query add keyword query; Change mapping keyword type

leetcode. 12 --- integer to Roman numeral
随机推荐
box-sizing
Don't underestimate the integral mall. It can play a great role
Concurrent writing of maps in golang
一个简单而功能强大的开发者工具箱Box3.cc
探索云原生数据库,纵观未来科技发展
Golang implements BigInteger large number calculation
同样是初级测试工程师,为啥他薪资高?会这几点面试必定出彩
不要小看了积分商城,它的作用可以很大
leetcode 139. Word Break 单词拆分(中等)
【比特熊故事汇】6月MVP英雄故事|技术实践碰撞境界思维
Golang实现Biginteger大数计算
东方财富哪个开户更安全,更好点
He is also a junior test engineer. Why is his salary high? The interview must be brilliant at these points
Left hand code, right hand open source, part of the open source road
Keras深度学习实战(11)——可视化神经网络中间层输出
个人如何开户炒股 炒股开户安全吗
laravel8使用faker调用工厂填充数据
SSH keygen configuration does not require entering a password every time
Which securities company is better and safer for great wisdom to choose when opening an account
股票开户要找谁?在线开户安全么?