12345678910111213141516171819202122232425262728293031323334353637383940 |
- <?php
- namespace addons\umeditor;
- use think\Addons;
- /**
- * 插件
- */
- class Umeditor 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['umeditor'] = ['classname' => $config['classname']??'.editor'];
- }
- }
|