Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion appinfo/info.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<info>
<id>files_texteditor</id>
<name>Text editor</name>
<name>Plain text editor</name>
<description>This application enables Nextcloud users to open, save and edit text files in the web browser. If enabled, an entry called "Text file" in the "New" button menu at the top of the web browser appears. When clicked, a new text file opens in the browser and the file can be saved into the current Nextcloud directory. Further, when a text file is clicked in the web browser, it will be opened and editable. If the privileges allow, a user can also edit shared files and save these changes back into the web browser.
More information is available in the text editor documentation.
</description>
Expand Down
2 changes: 1 addition & 1 deletion build/editor.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/editor.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/public-share.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,15 +245,15 @@ export const Texteditor = {
registerFileActions: function () {
supportedMimeTypes.forEach((mime) => {
OCA.Files.fileActions.registerAction({
name: 'Edit',
name: 'Edit in plain text editor',
mime: mime,
actionHandler: this._onEditorTrigger.bind(this),
permissions: OC.PERMISSION_READ,
icon: function () {
return OC.imagePath('core', 'actions/edit');
}
});
OCA.Files.fileActions.setDefault(mime, 'Edit');
OCA.Files.fileActions.setDefault(mime, 'Edit in plain text editor');
});
},

Expand Down