Age | Commit message (Collapse) | Author |
|
`prosemirror-markdown` uses `params` attribute for the language hint
whereas `tiptap` uses the `language` attribute.
Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
|
|
Signed-off-by: Vinicius Reis <vinicius.reis@nextcloud.com>
|
|
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Address review feedback
Signed-off-by: Julius Härtl <jus@bitgrid.net>
|
|
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>
|
|
Signed-off-by: Jonas <jonas@freesources.org>
|
|
Signed-off-by: Vinicius Reis <vinicius.reis@nextcloud.com>
|
|
This adds support for parsing files containing FrontMatter and editing
it as like a code block.
Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
|
|
Signed-off-by: Raul <raul@nextcloud.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
|
|
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>
|
|
Adjusted test cases to test whitespace characters are
not touched.
Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
|
|
Signed-off-by: Julius Härtl <jus@bitgrid.net>
|
|
`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>
|
|
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>
|
|
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>
|
|
We now provide $imageResolver to lookup images.
Signed-off-by: Max <max@nextcloud.com>
|
|
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>
|
|
Signed-off-by: Max <max@nextcloud.com>
|
|
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>
|
|
Signed-off-by: Max <max@nextcloud.com>
|