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

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

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 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 8c5654b Compare September 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 500577a Compare September 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 stable30 Sep 23, 2024
63 checks passed
@mejo- mejo- deleted the backport/6425/stable30 branch September 23, 2024 14:19
@Altahrim Altahrim mentioned this pull request Oct 1, 2024
4 tasks
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