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
AgeCommit message (Collapse)Author
2022-10-31Fix code blocks loosing the language hint on serializationFerdinand Thiessen
`prosemirror-markdown` uses `params` attribute for the language hint whereas `tiptap` uses the `language` attribute. Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
2022-10-27🐛 fix relative link in RichWorkspaceVinicius Reis
Signed-off-by: Vinicius Reis <vinicius.reis@nextcloud.com>
2022-10-12Use vue-richtext for rendering paragraph widgetJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net> Address review feedback Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-10-05Feature: Show word count in RichTextFerdinand Thiessen
Show word count as last element of the overflow menu, which now will be always shown. The word count is updated when the menu is openend as the tiptap word count is not reactive. Modified ActionList: Added a named slot for adding elements that should always shown as the last elements. Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
2022-09-20Load Mention extension in RichText.jsJonas
Signed-off-by: Jonas <jonas@freesources.org>
2022-08-17♻️ (#107): split heading logic: extractHeadingsVinicius Reis
Signed-off-by: Vinicius Reis <vinicius.reis@nextcloud.com>
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-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-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-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-06-10Bring back inline code supportJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-06-07fix: remove nodes/index.js - import directlyMax
`vite dev` will load all imports in imported files. So for now it is better to not bundle multiple files in indexes. Signed-off-by: Max <max@nextcloud.com>
2022-06-07fix: bring back table modification buttonsMax
Add an `EditableTable` node that has all the buttons for changing the table. Use it in the Editor while keeping the plain `Table` in RichtextReader. Signed-off-by: Max <max@nextcloud.com>
2022-06-07fix: bring back Tables in RichtextReaderMax
Table node views include @nextcloud/vue elements that currently do not play well with vite. Destinguish between EditableTable (with the node views) and Table (without the node views) and use the latter for RichtextReader. Signed-off-by: Max <max@nextcloud.com>
2022-06-07cleanup: drop richTextOptions and currentDirectoryMax
We now provide $imageResolver to lookup images. Signed-off-by: Max <max@nextcloud.com>
2022-06-07feature: emit clickLink from `ReadOnlyEditor`Max
The Prosemirror plugin with the `handleClick` handler only customizes the prosemirror handling of the click event. In read only mode we are not in a content-editable section. So clicking a link will cause the browser to open the url with a page reload. Allow overwriting this behavior by handling all link clicks via prosemirror. Set `onClick` option on the `Link` mark to customize the behavior. Emit a `click-link` event from `ReadOnlyEditor` with info about the event and the attributes of the link mark. Find the link that was clicked based on the clicked marks rather than the element in the event. This way we can get access to the attributes of the mark without relying on the selection or even changing it. Also add plugin key to link click handler Signed-off-by: Max <max@nextcloud.com>
2022-06-07WIP: first take on building package with viteMax
Signed-off-by: Max <max@nextcloud.com>
2022-06-07refactor: use Editor.new directly in ReadOnlyEditorMax
Introduce a `Plaintext` tiptap extension that bundles all the extensions used for plain text editing. This allows calling `Editor.new` directly with just a few extensions. No need to rely on `createEditor` from the editor factory anymore. Also prevent error messages about undefined callbacks because no callbacks were handed to `createEditor` in `ReadOnlyEditor`. Signed-off-by: Max <max@nextcloud.com>
2022-06-07refactor: RichText extension groups all text formattingMax
Signed-off-by: Max <max@nextcloud.com>