Skip to content

Conversation

@julien-nc
Copy link
Member

The cursor position was not set to the drop position so the images were always inserted at the current cursor position.

This required to handle the drop event in the Image node, like we do with the Paste event. The position is then passed to the editor wrapper via a custom event.

@julien-nc julien-nc added bug Something isn't working feature: formatting Features related to text formatting and node types 3. to review format: markdown labels Apr 19, 2022
@julien-nc julien-nc added this to the Nextcloud 25 milestone Apr 19, 2022
@julien-nc
Copy link
Member Author

/compile amend

@julien-nc
Copy link
Member Author

/backport to stable24

Copy link
Member

@mejo- mejo- left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yay, nice 😍 Works like a charm.

@julien-nc julien-nc force-pushed the fix/drop-image-position branch from 1931e2e to b6087af Compare April 19, 2022 10:13
@julien-nc
Copy link
Member Author

/compile amend

…mage

Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
@nextcloud-command nextcloud-command force-pushed the fix/drop-image-position branch from b6087af to 927801e Compare April 19, 2022 10:21
@julien-nc julien-nc merged commit 9737026 into master Apr 19, 2022
@delete-merged-branch delete-merged-branch bot deleted the fix/drop-image-position branch April 19, 2022 10:37
@max-nextcloud max-nextcloud added the backported successfully backported label Jul 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review backported successfully backported bug Something isn't working feature: formatting Features related to text formatting and node types format: markdown

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants