问题的原因是:是htmlspecialchars,PHP 5.4后GBK编码下默认不支持中文,转换后内容为空,UTF-8编码没有任何问题。
这样,后台编辑器就可以显示内容了。
解决方法如下:
在includeckeditorckeditor_php5.php第137行左右。
把
$out = "<textarea name="" . $name . """ . $attr . ">" . htmlspecialchars($value) . "</textarea> ";
修改成如下
$out = "<textarea name="" . $name . """ . $attr . ">" . htmlspecialchars($value,ENT_COMPAT,'ISO-8859-1') . "</textarea> ";