2025-04-10 23:19:13 +08:00

63 lines
1.2 KiB
PHP
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
/**
* UEditor Widget扩展
*
* @author xbzbing<xbzbing@gmail.com>
* @link www.crazydb.com
*
* UEditor版本v1.4.3.1
* Yii版本2.0+
*/
namespace crazydb\ueditor;
use yii\web\AssetBundle;
/**
* Class UEditorAsset
* 负责UEditor的资源文件引入。
* 由于bower上的源码是纯源码需要用grunt打包后才能使用因此扩展自带了1.4.3版本的UEditor核心文件。
*
* @package crazydb\ueditor
*/
class UEditorAsset extends AssetBundle {
/**
* UEditor路径
* @var
*/
public $sourcePath;
/**
* UEditor加载需要的JS文件。
* ueditor.config.js中是默认配置项不建议直接引入。
* @var array
*/
public $js = [
//'ueditor.all.js',
];
/**
* UEditor加载需要的CSS文件。
* UEditor 会自动加载默认皮肤CSS这里不必指定
*
* @var array
*/
public $css = [];
public $publishOptions = [
'except' => [
'php/',
'index.html',
'.gitignore'
]
];
public function init() {
parent::init();
if($this->sourcePath == null)
$this->sourcePath = __DIR__ . DIRECTORY_SEPARATOR . 'assets';
}
}