Skip to content

[stable30] fix(paragraph): migrate preview options to decorations - #6431

Merged
mejo- merged 13 commits into
stable30from
backport/6425/stable30
Sep 23, 2024
Merged

[stable30] fix(paragraph): migrate preview options to decorations#6431
mejo- merged 13 commits into
stable30from
backport/6425/stable30

Conversation

@backportbot

@backportbotbackportbotBot commented Sep 19, 2024

Copy link
Copy Markdown

Backport of #6425

max-nextcloudand others added 12 commits September 23, 2024 12:53
Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Render the preview options as a decoration for previews too.
Signed-off-by: Max <max@nextcloud.com>
Fixes: #6185
Signed-off-by: Jonas <jonas@freesources.org>
Signed-off-by: Jonas <jonas@freesources.org>
Required for implementing `deleteNode` like tiptap does it:
https://github.com/ueberdosis/tiptap/blob/develop/packages/core/src/NodeView.ts#L305
Signed-off-by: Max <max@nextcloud.com>
Compute the range based on offset and nodeSize.
Signed-off-by: Max <max@nextcloud.com>
- center align options for text links
- top align options for preview links
Signed-off-by: Jonas <jonas@freesources.org>
Signed-off-by: Jonas <jonas@freesources.org>
Otherwise the overlay container would catch all the click events.
Signed-off-by: Jonas <jonas@freesources.org>
Signed-off-by: Jonas <jonas@freesources.org>
Signed-off-by: Jonas <jonas@freesources.org>
@mejo-
mejo-force-pushed the backport/6425/stable30 branch from 798f0ee to 8c5654bCompareSeptember 23, 2024 10:59
* Don't calculate preview options decorations in readonly editor
* Check for changed nodeSize when checking for decoration changes
* Rename `editor` to `$editor` in vue compontent, it's not reactive
Signed-off-by: Jonas <jonas@freesources.org>
@mejo-
mejo-force-pushed the backport/6425/stable30 branch from 8c5654b to 500577aCompareSeptember 23, 2024 11:37
@mejo-
mejo- marked this pull request as ready for review September 23, 2024 11:38
@mejo-
mejo- merged commit 01b6178 into stable30Sep 23, 2024
@mejo-
mejo- deleted the backport/6425/stable30 branch September 23, 2024 14:19
@AltahrimAltahrim mentioned this pull request Oct 1, 2024
4 tasks
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@mejo-@max-nextcloud