Ueditor-thinkphp icon indicating copy to clipboard operation
Ueditor-thinkphp copied to clipboard

兼容trace

Open BedBear opened this issue 10 years ago • 3 comments

在输出后面加上exit(); 应该就可以防止trace信息输出了吧

//ueditor编辑器配置 public function ueditor(){ $data = new \Org\Util\Ueditor(); echo $data->output(); exit(); // 防止调试信息输出 }

BedBear avatar Apr 08 '15 10:04 BedBear

也可以调用C方法临时关闭本页面trace; public function ueditor(){ C('SHOW_PAGE_TRACE',false); $data = new \Org\Util\Ueditor(); echo $data->output(); }

hxsf avatar Apr 18 '15 08:04 hxsf

应该使用$this->ajaxReturn( $data->output())进行返回比较妥当

findever avatar Jun 01 '15 09:06 findever

经测试,在Ueditor.class.php的构造函数中,加入代如下代码可关闭trace,同时,不影响trace的使用。 //手动半闭trace防止json数据返回错误。 C('SHOW_PAGE_TRACE',false); 最后,谢谢作者的辛勤劳动。

teacherpan avatar Aug 14 '15 10:08 teacherpan