Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 13 commits into from
Sep 23, 2024

Conversation

backportbot[bot]
Copy link

@backportbot backportbot bot commented Sep 19, 2024

Backport of #6425

max-nextcloud and 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 5c22e5b Compare September 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 42960f7 Compare September 23, 2024 13:32
@mejo- mejo- merged commit 99f1dc1 into stable29 Sep 23, 2024
59 checks passed
@mejo- mejo- deleted the backport/6425/stable29 branch September 23, 2024 14:46
@Altahrim Altahrim mentioned this pull request Oct 1, 2024
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants