diff --git a/src/Editor.php b/src/Editor.php index ccfe5ed..793a215 100644 --- a/src/Editor.php +++ b/src/Editor.php @@ -3,6 +3,7 @@ namespace Encore\PythonEditor; use Encore\Admin\Form\Field; +use Jxlwqq\CodeMirror\CodeMirror; class Editor extends Field { @@ -15,16 +16,16 @@ class Editor extends Field * {@inheritdoc} */ protected static $css = [ - 'vendor/laravel-admin-ext/code-mirror/codemirror-5.40.0/lib/codemirror.css', + CodeMirror::ASSETS_PATH.'lib/codemirror.css', ]; /** * {@inheritdoc} */ protected static $js = [ - 'vendor/laravel-admin-ext/code-mirror/codemirror-5.40.0/lib/codemirror.js', - 'vendor/laravel-admin-ext/code-mirror/codemirror-5.40.0/addon/edit/matchbrackets.js', - 'vendor/laravel-admin-ext/code-mirror/codemirror-5.40.0/mode/python/python.js', + CodeMirror::ASSETS_PATH.'lib/codemirror.js', + CodeMirror::ASSETS_PATH.'addon/edit/matchbrackets.js', + CodeMirror::ASSETS_PATH.'mode/python/python.js', ]; protected $version = 3;