Files
Background-panel/addons/summernote/Summernote.php
yyh931018@qq.com 1b0c8f4196 update
2022-09-08 15:32:32 +08:00

41 lines
601 B
PHP

<?php
namespace addons\summernote;
use think\Addons;
/**
* Summernote富文本编辑器
*/
class Summernote extends Addons
{
/**
* 插件安装方法
* @return bool
*/
public function install()
{
return true;
}
/**
* 插件卸载方法
* @return bool
*/
public function uninstall()
{
return true;
}
/**
* @param $params
*/
public function configInit(&$params)
{
$config = $this->getConfig();
$params['summernote'] = ['classname' => $config['classname'] ?? '.editor'];
}
}