Skip to content

Commit

Permalink
InvalidArgumentException, module can't be found, looking to fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Gröger committed May 30, 2023
1 parent 10a405b commit 8cee9e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 4 additions & 0 deletions _config/editor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
SilverStripe\Admin\LeftAndMain:
extra_requirements_javascript:
- 'kevingroeger/codeeditorfield: client/thirdparty/ace/ace.js'
- 'kevingroeger/codeeditorfield: client/javascript/CodeEditorField.js'
3 changes: 0 additions & 3 deletions src/Forms/CodeEditorField.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ class CodeEditorField extends TextareaField

public function Field($properties = [])
{
Requirements::javascript('kevingroeger/codeeditorfield:client/thirdparty/ace/ace.js');
Requirements::javascript('kevingroeger/codeeditorfield:client/javascript/CodeEditorField.js');

$this->addExtraClass('codeeditorfield stacked');
return parent::Field($properties);
}
Expand Down

0 comments on commit 8cee9e0

Please sign in to comment.