You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cf-sdk/Addons/EditorForAdmin/EditorForAdminAddon.class.php

47 lines
1.3 KiB
PHP

<?php
// +----------------------------------------------------------------------
// | OneThink [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013 http://www.onethink.cn All rights reserved.
// +----------------------------------------------------------------------
// | Author: yangweijie <yangweijiester@gmail.com> <code-tech.diandian.com>
// +----------------------------------------------------------------------
namespace Addons\EditorForAdmin;
use Common\Controller\Addon;
/**
* 编辑器插件
* @author yangweijie <yangweijiester@gmail.com>
*/
class EditorForAdminAddon extends Addon{
public $info = array(
'name'=>'EditorForAdmin',
'title'=>'后台编辑器',
'description'=>'用于增强整站长文本的输入和显示',
'status'=>1,
'author'=>'thinkphp',
'version'=>'0.2'
);
public function install(){
return true;
}
public function uninstall(){
return true;
}
/**
* 编辑器挂载的后台文档模型文章内容钩子
* @param array('name'=>'表单name','value'=>'表单对应的值')
*/
public function adminArticleEdit($data){
$this->assign('addons_data', $data);
$this->assign('addons_config', $this->getConfig());
$this->display('content');
}
}