引入Ace文本编辑器依赖

This commit is contained in:
Chenx221 2024-02-20 16:24:00 +08:00
parent a2961f05e3
commit 2ddd915cf2
Signed by: chenx221
GPG Key ID: D7A9EC07024C3021

18
assets/AceAsset.php Normal file
View File

@ -0,0 +1,18 @@
<?php
namespace app\assets;
use yii\web\AssetBundle;
class AceAsset extends AssetBundle
{
public $sourcePath = '@npm/ace-builds';
public $js = [
'src-min/ace.js',
'src-min/theme-github.js',
'src-min/mode-text.js'
];
public $css = [
'css/ace.css'
];
}