引入Ace文本编辑器依赖
This commit is contained in:
parent
a2961f05e3
commit
2ddd915cf2
18
assets/AceAsset.php
Normal file
18
assets/AceAsset.php
Normal 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'
|
||||
];
|
||||
}
|
Loading…
Reference in New Issue
Block a user