forked from yiichina/yii2-md-editor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CodeMirrorAsset.php
39 lines (34 loc) · 884 Bytes
/
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
<?php
/**
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
namespace yiichina\mdeditor;
use yii\web\AssetBundle;
/**
* This asset bundle provides the javascript files for client validation.
*
* @author Qiang Xue <[email protected]>
* @since 2.0
*/
class CodeMirrorAsset extends AssetBundle
{
public $sourcePath = '@bower/codemirror';
public $css = [
'lib/codemirror.css',
];
public $js = [
'lib/codemirror.js',
'mode/markdown/markdown.js',
'mode/gfm/gfm.js',
'mode/htmlmixed/htmlmixed.js',
'mode/xml/xml.js',
'mode/javascript/javascript.js',
'mode/css/css.js',
'mode/clike/clike.js',
'mode/php/php.js',
'addon/mode/overlay.js',
'addon/edit/matchbrackets.js',
];
}