mirror of
https://gitee.com/liuxioabin/fengketrade.git
synced 2026-04-17 21:03:17 +08:00
44 lines
800 B
PHP
44 lines
800 B
PHP
<?php
|
|
|
|
namespace addons\ueditor;
|
|
|
|
use think\Addons;
|
|
|
|
/**
|
|
* 百度Ueditor插件
|
|
*/
|
|
class Ueditor 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['ueditor'] = [
|
|
'classname' => $config['classname'] ?? '.editor',
|
|
'baiduMapAk' => $config['baiduMapAk'] ?? '',
|
|
'catchRemoteImageEnable' => $config['catchRemoteImageEnable'] ?? false,
|
|
];
|
|
}
|
|
}
|