1、编辑器

2、addons的一个bug
This commit is contained in:
2016-12-21 13:26:44 +08:00
parent 1cf7ebb77e
commit 9a8bedbf14
314 changed files with 100539 additions and 3 deletions

View File

@@ -88,6 +88,7 @@ class Addons extends Base {
if ($config) {
$config = json_decode($config, true);
} else {
$config = array();
$temp_arr = include $this->config_file;
foreach ($temp_arr as $key => $value) {
if ($value['type'] == 'group') {
@@ -97,7 +98,7 @@ class Addons extends Base {
}
}
} else {
$config[$key] = $temp_arr[$key]['value'];
$config[$key] = $value['value'];
}
}
}

View File

@@ -1,5 +1,5 @@
<textarea name="{$field}" id="{$field}" style="width: 100%;">{$value}</textarea>
<!-- 实例化编辑器代码 -->
<script type="text/javascript">
CKEDITOR.replace('{$field}');
var ue = UE.getEditor('{$field}');
</script>