-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCodemirrorAsset.php
54 lines (42 loc) · 1.06 KB
/
CodemirrorAsset.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?php
/**
* @link https://github.com/SDKiller/yii2-codemirror
* @package zyx\yii2-codemirror
* @copyright Copyright (c) 2014 Serge Postrash, Copyright (c) 2010-2014 by YiiExt contributors
* @license BSD 3-Clause, see LICENSE.md
*/
namespace zyx\widgets;
use Yii;
use yii\web\AssetBundle;
class CodemirrorAsset extends AssetBundle
{
public $sourcePath = '@vendor/bower/codemirror';
public $depends = [
];
public $js = [
'lib/codemirror.js',
'mode/xml/xml.js',
'addon/display/autorefresh.js',
'addon/edit/matchbrackets.js',
'addon/fold/xml-fold.js',
'mode/htmlembedded/htmlembedded.js',
'mode/htmlmixed/htmlmixed.js',
'mode/javascript/javascript.js',
'mode/css/css.js',
'mode/clike/clike.js',
'mode/php/php.js',
];
public $css = [
'lib/codemirror.css',
'theme/eclipse.css',
];
public $jsOptions = [];
public $cssOptions = [];
/**
* @inheritdoc
*/
public function init()
{
parent::init();
}
}