Skip to content

Commit

Permalink
fix autoloader
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Erkelens committed Oct 26, 2017
1 parent b7d80cb commit 1f38f14
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
8 changes: 8 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@
"silverstripe/framework": "^4",
"cebe/markdown": "1.1.2"
},
"autoload": {
"psr-4": {
"SilverStripers\\markdown\\db\\": "src/db",
"SilverStripers\\markdown\\extensions\\": "src/extensions",
"SilverStripers\\markdown\\forms\\": "src/forms",
"SilverStripers\\markdown\\shortcodes\\": "src/shortcodes"
}
},

"extra": {
"expose": [
Expand Down
2 changes: 1 addition & 1 deletion src/forms/MarkdownEditorConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class MarkdownEditorConfig
'title' => 'Strike Through',
'action' => 'toggleStrikethrough'
],
"|",
'|',
[
'name' => 'quote',
'className' => 'fa fa-quote-left',
Expand Down
6 changes: 0 additions & 6 deletions src/forms/MarkdownEditorField.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,10 @@
*/
namespace SilverStripers\markdown\forms;

use SilverStripe\Assets\Shortcodes\ImageShortcodeProvider;
use SilverStripe\Forms\TextareaField;
use SilverStripe\ORM\DataObject;
use SilverStripe\ORM\DataObjectInterface;
use Exception;
use SilverStripe\ORM\FieldType\DBHTMLText;
use SilverStripe\View\Parsers\HTMLValue;
use SilverStripe\Forms\HTMLEditor\HTMLEditorSanitiser;
use SilverStripe\Forms\HTMLEditor\HTMLEditorField;
use SilverStripe\Forms\HTMLEditor\HTMLEditorConfig;

class MarkdownEditorField extends TextareaField
{
Expand Down

0 comments on commit 1f38f14

Please sign in to comment.