Skip to content
/ text Public
forked from nextcloud/text

πŸ“‘ Collaborative document editing using Markdown

License

Notifications You must be signed in to change notification settings

bjornfor/text

Β 
Β 

Repository files navigation

Nextcloud Text

GitHub Workflow Status Start contributing

πŸ“‘ Collaborative document editing!

Features

  • πŸ“ Simple focused writing: No distractions, only the formatting you need.
  • πŸ™‹ Work together: Share and collaborate with friends and colleagues, no matter if they use Nextcloud or not!
  • πŸ’Ύ Open format: Files are saved as Markdown, so you can edit them from any other text app too.
  • ✊ Strong foundation: We use 🐈 tiptap which is based on πŸ¦‰ ProseMirror – huge thanks to them!

Nextcloud Text is the default text editor since Nextcloud 17. To start editing just open an existing markdown or plaintext file or create a new one.

Configuration

The rich workspaces in the file list can be disabled either by the users in the files app settings or globally by the admin with the following occ command:

occ config:app:set text workspace_available --value=0

πŸ— Development setup

Currently this app requires the master branch of the Viewer app.

  1. ☁ Clone this app into the apps folder of your Nextcloud: git clone https://github.com/nextcloud/text.git
  2. πŸ‘©β€πŸ’» In the folder of the app, run the command make to install dependencies and build the Javascript.
  3. βœ… Enable the app through the app management of your Nextcloud
  4. πŸŽ‰ Partytime! Help fix some issues and review pull requests πŸ‘

πŸ§™ Advanced development stuff

To build the Javascript whenever you make changes, instead of the full make you can also run npm run build. Or run npm run watch to rebuild on every file save.

🐞 Testing the app

Currently this app uses three different kinds of tests:

For testing the backend (PHP) Psalm and PHPUnit are used, you can run the testcases (placed in tests/) using the composer scripts psalm and test:unit.

For testing the frontend jest is used for unittests, whereas cypress is used for end2end testing. The unittests are also placed in tests/, the cypress tests are placed in cypress/. You can run the tests using the package scripts npm run test (jest), and respective npm run test:cypress (cypress).

Please note the cypress tests require a nextcloud server running, the if no running server is detected a docker container will be started, this requires the current user to be in the docker group. Or you might set the CYPRESS_baseUrl environment variable for a custom nextcloud server.

About

πŸ“‘ Collaborative document editing using Markdown

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 64.5%
  • PHP 17.5%
  • Vue 16.3%
  • SCSS 1.1%
  • HTML 0.2%
  • Shell 0.2%
  • Other 0.2%