📑 Collaborative document editing using Markdown
📑 Collaborative document editing!

$E=mc^2$) and display ($$...$$) math rendering powered by KaTeX.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.
You can insert mathematical formulas using LaTeX syntax:
$E=mc^2$$$
\sum_{i=1}^n i = \frac{n(n+1)}{2}
$$
Note: When typing in the editor, create a soft line break (Shift+Return) to add lines within the formula block.You can also:
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
The app can be configured to open files read-only by default. This setting is globally valid and can be set by the admin with the following command:
occ config:app:set text open_read_only_enabled --value=1
This app requires the main branch of the Viewer app to be installed and enabled. Follow its development setup and then continue here.
apps folder of your Nextcloud: git clone https://github.com/nextcloud/text.gitmake to install dependencies and build the Javascript.vite serveTo use the advantages of vite serve with hot module replacement (HMR) and not have to recompile the JS assets after each code change, do the following:
/apps/text/ to the vite serve server.
When using nextcloud-docker-dev, add the following snippet to data/nginx/vhost.d/nextcloud.local and restart the proxy container. You might have to replace /apps/text/ with e.g. /apps-extra/text/ depending on where the text app resides in your dev setup.
location /apps/text/ {
proxy_pass http://host.docker.internal:5173/apps/text/;
# fallback to nextcloud server if vite serve doesn't answer
error_page 502 = @fallback;
}
location @fallback {
proxy_pass http://nextcloud.local;
}
npm run serve to start the vite serve server. If text resides somewhere else than /apps/text, run e.g. BASE=/apps-extra/text npm run serve.Afterwards all changes to the code will apply to the application in your browser automatically thanks to hot module replacement (HMR).
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.
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 src/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.
The mobile apps open the text editor via a direct editing session. To test this in a browser, do the following:
curl --silent --insecure --request POST --url 'https://admin:admin@nextcloud.local/ocs/v2.php/apps/files/api/v1/directEditing/open?editorId=text&creatorId=textdocument&format=json' --header 'Content-Type: multipart/form
good first issue 또는 help wanted 이슈가 없습니다.
No CONTRIBUTING document was found. Please check the README and open issues.