Π·Π΅Ρ€ΠΊΠ°Π»ΠΎ ΠΈΠ·
1
0
Π€ΠΎΡ€ΠΊΠ½ΡƒΡ‚ΡŒ 0
πŸ“„ Text editor for plaintext files
ΠŸΠ΅Ρ€Π΅ΠΉΡ‚ΠΈ ΠΊ Ρ„Π°ΠΉΠ»Ρƒ
Nextcloud bot d4a632e4a8
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-07-19 00:46:42 +00:00
.github Updating phpunit-mysql.yml workflow from template 2024-03-15 16:18:57 +00:00
.tx [tx-robot] Update transifex configuration 2022-10-01 02:30:16 +00:00
appinfo bump min nc version to 24 2023-07-18 19:49:22 +02:00
css fix close icon in dark theme 2023-07-18 19:38:01 +02:00
img add missing images 2017-02-22 21:25:36 +01:00
js Merge pull request #610 from nextcloud/dependabot/npm_and_yarn/marked-4.1.1 2022-10-21 10:02:48 +02:00
l10n Fix(l10n): Update translations from Transifex 2024-07-19 00:46:42 +00:00
lib format code 2023-07-18 19:15:27 +02:00
tests Add configuration for php-cs-fixer and run cs:fix 2022-09-30 10:12:10 +02:00
.gitignore Add configuration for php-cs-fixer and run cs:fix 2022-09-30 10:12:10 +02:00
.nextcloudignore Add composer for dev dependencies 2021-06-25 11:58:38 +02:00
.php-cs-fixer.dist.php Add configuration for php-cs-fixer and run cs:fix 2022-09-30 10:12:10 +02:00
.scrutinizer.yml Ignore js/vendor/* aswell, not our code 2015-06-10 10:17:22 +02:00
CHANGELOG.md Bump version to 2.15.0 2022-11-18 15:09:33 +01:00
Makefile Build scss 2022-10-21 09:24:17 +02:00
README.md Point directly to supported_mimetypes.json 2020-09-17 19:55:57 +02:00
babel.config.js Bump frontend dependencies and remove build files 2019-12-19 11:10:25 +01:00
composer.json Build(deps-dev): Bump vimeo/psalm from 4.30.0 to 5.13.1 2023-07-18 17:21:23 +00:00
composer.lock Build(deps-dev): Bump phpunit/phpunit from 9.6.18 to 9.6.19 2024-04-06 01:24:47 +00:00
krankerl.toml Update krankerl config 2020-03-31 19:15:15 +02:00
package-lock.json Merge pull request #892 from nextcloud/dependabot/npm_and_yarn/babel/preset-env-7.24.8 2024-07-13 01:11:46 +00:00
package.json Merge pull request #892 from nextcloud/dependabot/npm_and_yarn/babel/preset-env-7.24.8 2024-07-13 01:11:46 +00:00
webpack.config.js Cleanup webpack config 2020-12-21 08:11:30 +01:00

README.md

Texteditor

Build Status Scrutinizer Code Quality Code Coverage

The original text editor app for Nextcloud, based on Ace.

Features:

  • Syntax highlighting
  • Autosave
  • Syntax checking
  • Responsive design (optimised on mobile and desktop)

Install

Simply copy the files_texteditor folder into the apps directory and enable the app within the Nextcloud settings.

Usage

To use the editer, click on a supported file within the Files app and the file will be loaded into the editor. Saving is automatic, but can also be triggered manually with Ctrl+S or Cmd+S.

Contributors

Maintainer: Robin Appelman Past contributors: Thomas MΓΌller Tom Needham JΓΆrn Friedrich Dreyer Vincent Petry

Preview apps

Apps can add side-by-side previews to the app for certain file types by using the preview api


OCA.MYApp.Preview = function(){
    ...
}

OCA.MYApp.Preview.Prototype = {
    /**
     * Give the app the opportunity to load any resources it needs and prepare for rendering a preview
     */
    init: function() {
        ...
    },
    /**
     * @param {string} the text to create the preview for
     * @param {jQuery} the jQuery element to render the preview in
     */
    preview: function(text, previewElement) {
        ...
    }
}

OCA.Files_Texteditor.registerPreviewPlugin('text/markdown', new OCA.MYApp.Preview());

For styling of the preview, the preview element will have the id preview and the className will be set to the mimetype of the file being eddited with any slash replaced by dashes.

e.g. when editing a markdown file the preview element can be styled using the #preview.text-markdown css query.