diff options
author | Julius Härtl <jus@bitgrid.net> | 2020-04-04 23:41:44 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-04 23:41:44 +0300 |
commit | c5084eacc4e7400a53426056f61f59ce20e863ad (patch) | |
tree | 9ce23c8a37118c7bebe77f7eeef1311480eda79e /lib | |
parent | f2e8067ceb038f0e2c294182901ad931c1223eeb (diff) | |
parent | 2a4287904df60a74b54b3579621bcfad57a0b273 (diff) |
Merge pull request #747 from nextcloud/backport/743/stable18
[stable18] Offer txt editing by default
Diffstat (limited to 'lib')
-rw-r--r-- | lib/DirectEditing/TextDirectEditor.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/DirectEditing/TextDirectEditor.php b/lib/DirectEditing/TextDirectEditor.php index e4b0d532e..1cb6f7c4b 100644 --- a/lib/DirectEditing/TextDirectEditor.php +++ b/lib/DirectEditing/TextDirectEditor.php @@ -82,7 +82,8 @@ class TextDirectEditor implements IEditor { */ public function getMimetypes(): array { return [ - 'text/markdown' + 'text/markdown', + 'text/plain' ]; } @@ -92,9 +93,7 @@ class TextDirectEditor implements IEditor { * @return array */ public function getMimetypesOptional(): array { - return [ - 'text/plain' - ]; + return []; } /** |