From bd482560f5ae7b86b61899374e718f28bad47ab3 Mon Sep 17 00:00:00 2001 From: z-song Date: Wed, 12 Sep 2018 01:20:54 +0800 Subject: [PATCH] update --- src/Editor.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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;