Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2022-08-02Fix alignment of questionmark in guest avatarJonas
Signed-off-by: Jonas <jonas@freesources.org>
2022-08-01Update src/components/Menu/keys.jsVinicius Reis
Co-authored-by: Julius Härtl <jus@bitgrid.net> Signed-off-by: Vinicius Reis <luiz.vinicius73@gmail.com>
2022-08-01♿️ (#2735): add missing shortcutsVinicius Reis
Signed-off-by: Vinicius Reis <vinicius.reis@nextcloud.com>
2022-08-01✏️ (#2735): typofixVinicius Reis
Signed-off-by: Vinicius Reis <vinicius.reis@nextcloud.com>
2022-08-01🩹 (#2735): fix incorrect shortcutsVinicius Reis
- strikethrough - blockquote Signed-off-by: Vinicius Reis <vinicius.reis@nextcloud.com>
2022-08-01♿️ (#2735): add aria-keyshortcuts to menu entriesVinicius Reis
Signed-off-by: Vinicius Reis <vinicius.reis@nextcloud.com>
2022-07-30♿️ (#2737): add missing label/titleVinicius Reis
Signed-off-by: Vinicius Reis <vinicius.reis@nextcloud.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2022-07-29Front matter: Handle dashes in contentFerdinand Thiessen
If the front matter contains a sequence of three or more dashes, the front matter fences must be adjusted. Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
2022-07-29Added tests for the front matter nodeFerdinand Thiessen
Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
2022-07-29Better styling of Front Matter + input ruleFerdinand Thiessen
Added an input rule to add a front matter node if `---` is typed in the very beginning of the document. If it is typed somewhere else the default behavior is still to insert a `hr` node. Added a border on the left of the front matter, like the callouts and blockquote, and added a title for the element. Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de> a
2022-07-29Add support for editing (not creating) FrontMatterFerdinand Thiessen
This adds support for parsing files containing FrontMatter and editing it as like a code block. Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
2022-07-29fix: move .document-status css to DocumentStatusMax
Signed-off-by: Max <max@nextcloud.com>
2022-07-29refactor: add actual Wrapper, rename old to MainMax
Signed-off-by: Max <max@nextcloud.com>
2022-07-29rename EditorWrapper -> EditorMax
Signed-off-by: Max <max@nextcloud.com>
2022-07-29rename: to Editor/{MediaHandler,Wrapper}Max
Signed-off-by: Max <max@nextcloud.com>
2022-07-29refactor: add Content component for editor contentMax
This injects the `$editor` to display the content. One reason less to have the `$editor` in the `EditorWrapper`. Signed-off-by: Max <max@nextcloud.com>
2022-07-29refactor: separate component for editorMax
This will contain all editor related things. For now it only has the EditorMediaHandler Signed-off-by: Max <max@nextcloud.com>
2022-07-29refactor: add Status and DocumentStatus componentsMax
`Editor/Status` handles the status display in the menubar. `Editor/DocumentStatus` handles the document messages on conflict etc. Also move all files that are only used within it into the `Components/Editor` dir. Signed-off-by: Max <max@nextcloud.com>
2022-07-28🚑️ fix public file sharingVinicius Reis
Signed-off-by: Vinicius Reis <vinicius.reis@nextcloud.com>
2022-07-26Only autolink URLs containing protocolRaul
Signed-off-by: Raul <raul@nextcloud.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2022-07-25l10n: Separate wordsValdnet
Signed-off-by: Valdnet <47037905+Valdnet@users.noreply.github.com> Signed-off-by: Valdnet <47037905+Valdnet@users.noreply.github.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2022-07-25Fix bullet list input role for CJK inputFerdinand Thiessen
When using IME for CJK character input it is called after the composing is finished, at this point there might be more than one character. Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2022-07-22🚨 fix lint warningsVinicius Reis
Signed-off-by: Vinicius Reis <vinicius.reis@nextcloud.com>
2022-07-22🚨 fix build warningsVinicius Reis
::v-deep usage as a combinator has been deprecated Signed-off-by: Vinicius Reis <vinicius.reis@nextcloud.com>
2022-07-19Fixed typo in EditorFactory `serializePlainText`Ferdinand Thiessen
An empty text file should be serialized as `''` so fix checking if the document only contains an empty code block which type is `codeBlock` on tiptap v2 not `code_block`. Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
2022-07-19Add filetype mapping for txt to plaintextFerdinand Thiessen
This reduces the console output as everytime a txt file is loaded a exception is printed out that no matching language mapping is found for txt. Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
2022-07-19♿️ (#2387): add missing aria labelsVinicius Reis
Signed-off-by: Vinicius Reis <vinicius.reis@nextcloud.com>
2022-07-19🚸 (#2381): show menubar when user use tab key to navigateVinicius Reis
Signed-off-by: Vinicius Reis <vinicius.reis@nextcloud.com>
2022-07-19⚡️ (#2381): unsubscribe workspace events before destroy componentVinicius Reis
Signed-off-by: Vinicius Reis <vinicius.reis@nextcloud.com>
2022-07-19♿️ (#2381): make placeholder accessible by keyboard navigationVinicius Reis
Allows to keyboard focus on placeholder and create a new workspace using enter and space keys. Signed-off-by: Vinicius Reis <vinicius.reis@nextcloud.com>
2022-07-19Do not remove escaping from brackets, fixes #2703Ferdinand Thiessen
Removed the erroneous replacement of escaped brackets with plain brackets as this breaks valid markdown. Added a test case for this. Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
2022-07-19Added markdown parsing rules to tag special syntax to be not modified when savedFerdinand Thiessen
Added a markdown-it and tiptap extension to tag special, unknown, markdown syntax which would be escaped by prosemirror-markdown on save. The tagged part is not touched while saving if they are not modified manually. Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
2022-07-19Add option to set default file extension and disable rich editingJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2022-07-15Fix parsing of whitespace used in task listsFerdinand Thiessen
Switch to @hedgedoc/markdown-it-task-lists to fix parsing of task lists, namely allowing any whitespace inside the brackets, as by the github markdown specs. Doing this as markdown-it-task-lists seems orphaned, while hedgedoc is maintained and the bug is fixed there. This required adjusting the task-list testcase as the output is slightly different. Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
2022-07-15Ensure whitespaces in markdown files are preservedFerdinand Thiessen
Adjusted test cases to test whitespace characters are not touched. Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
2022-07-13⚡️ (#2387): remove events from $editor before destroy itVinicius Reis
Signed-off-by: Vinicius Reis <vinicius.reis@nextcloud.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2022-07-12Fix icon color on dark modeJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2022-07-09Do not unintended remove or modify link titles, fixes #2699Ferdinand Thiessen
Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
2022-07-08feat: update button styleLuka Trovic
Signed-off-by: Luka Trovic <luka@nextcloud.com>
2022-07-06fix: use own workspace endpoint instead of PROPFIND propertiesMax
With a lot of subdirectories the depth=1 PROPFIND will take quite a long time. It has to look for workspace files in all the subdirectories. Stop overloading the PROPFIND and rely on our own workspace endpoint for that particular directory instead. Signed-off-by: Max <max@nextcloud.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2022-07-06Align UserColors with SessionList, show display name instead of user idFerdinand Thiessen
This fixes #2229 Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
2022-07-05Move click conditions from default openClick handler to link pluginJonas
We only want our custom link handlers (either the default from Text app or a further customized one, e.g. from Collectives app) to happen if the first mouse button is used, Ctrl key is not pressed and the link points to a local link. Signed-off-by: Jonas <jonas@freesources.org>
2022-07-05Prevent opening links with default handler in RichTextReaderJonas
We use a prosemirror plugin with the `handleClick` handler to handle clicking on links, so we don't want the default browser link handling to happen. See earlier commit 5bf15b4dc0e1e683f08db3aff57f258443715ef5 for reference. Signed-off-by: Jonas <jonas@freesources.org>
2022-07-04package: expose ImageResolver so it can be provided to RichTextReaderMax
Signed-off-by: Max <max@nextcloud.com>
2022-07-04BaseReader: Use a factory pattern for creating the extension listFerdinand Thiessen
Provide functions are neither called on the providing object nor on the injecting object, so using `this` within provided functions will refer to the global `this` for which `$emit` is not defined. This uses a factory pattern so that `this` is bound to the injecting object. Also forwarding the `click-link` event is needed. Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
2022-07-04build(deps): bump @tiptap/extension-tabledependabot[bot]
Bumps [@tiptap/extension-table](https://github.com/ueberdosis/tiptap/tree/HEAD/packages/extension-table) from 2.0.0-beta.53 to 2.0.0-beta.54. - [Release notes](https://github.com/ueberdosis/tiptap/releases) - [Changelog](https://github.com/ueberdosis/tiptap/blob/main/packages/extension-table/CHANGELOG.md) - [Commits](https://github.com/ueberdosis/tiptap/commits/@tiptap/extension-table@2.0.0-beta.54/packages/extension-table) --- updated-dependencies: - dependency-name: "@tiptap/extension-table" dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2022-06-30Avoid loading the image before the node viewJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2022-06-30feat: improve collaborator styleLuka Trovic
Signed-off-by: Luka Trovic <luka@nextcloud.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2022-06-30l10n: Correct spellingValdnet
Signed-off-by: Valdnet <47037905+Valdnet@users.noreply.github.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2022-06-20🚨 fix stylelint warningsVinicius Reis
Signed-off-by: Vinicius Reis <vinicius.reis@nextcloud.com>