Skip to content

[stable29] fix(paragraph): migrate preview options to decorations - #6430

Merged
mejo- merged 13 commits into
stable29from
backport/6425/stable29
Sep 23, 2024
Merged

[stable29] fix(paragraph): migrate preview options to decorations#6430
mejo- merged 13 commits into
stable29from
backport/6425/stable29

Conversation

@backportbot

@backportbotbackportbotBot commented Sep 19, 2024

Copy link
Copy Markdown

Backport of #6425

max-nextcloudand others added 4 commits September 23, 2024 13:00
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>
@mejo-
mejo-force-pushed the backport/6425/stable29 branch from 7e94025 to 5c22e5bCompareSeptember 23, 2024 11:37
@mejo-
mejo- marked this pull request as ready for review September 23, 2024 11:38
mejo-and others added 9 commits September 23, 2024 15:32
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>
* 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/stable29 branch from 5c22e5b to 42960f7CompareSeptember 23, 2024 13:32
@mejo-
mejo- merged commit 99f1dc1 into stable29Sep 23, 2024
@mejo-
mejo- deleted the backport/6425/stable29 branch September 23, 2024 14:46
@AltahrimAltahrim mentioned this pull request Oct 1, 2024
1 task
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