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

fix: Image insertion position at cursor position and Updated placeholder text. #3224

Merged
merged 3 commits into from
Dec 22, 2023

Conversation

Palanikannan1437
Copy link
Collaborator

@Palanikannan1437 Palanikannan1437 commented Dec 21, 2023

This PR solves two issues:

  1. Fixes the bug where image was not being inserted in the cursor's current position.
  2. Fixes CSS issues with Images during insert (content shift)

Also added better typescript support for Suggestions in Slash Command.

…st transaction to correctly insert image node and set meta data for image removal.
…ages and img placeholders and adjust the margin on the table in the editor container.
Update the `Command` extension in `slash-commands.tsx` to include a `SlashCommandOptions` type for better TS support and allow spaces in the suggestion options and modify the `image` suggestion's search terms to include "img" in addition to "photo", "picture", and "media".
@Palanikannan1437 Palanikannan1437 self-assigned this Dec 21, 2023
@sriramveeraghanta sriramveeraghanta merged commit 1a2186c into release-0.15 Dec 22, 2023
3 of 5 checks passed
@sriramveeraghanta sriramveeraghanta deleted the fix/images branch December 22, 2023 08:40
sriramveeraghanta pushed a commit that referenced this pull request Dec 22, 2023
…lder text. (#3224)

* Fix position bug in the UploadImagesPlugin widget decoration and adjust transaction to correctly insert image node and set meta data for image removal.

* Update CSS styles in editor.css to remove margin top and bottom on images and img placeholders and adjust the margin on the table in the editor container.

* Better typescript support for images extension.

Update the `Command` extension in `slash-commands.tsx` to include a `SlashCommandOptions` type for better TS support and allow spaces in the suggestion options and modify the `image` suggestion's search terms to include "img" in addition to "photo", "picture", and "media".
@sriramveeraghanta sriramveeraghanta added this to the v0.14.2-dev milestone Dec 29, 2023
@sriramveeraghanta sriramveeraghanta added the 🐛bug Something isn't working label Dec 29, 2023
@Palanikannan1437 Palanikannan1437 changed the title [fix] Image insertion position at cursor position and Updated placeholder text. fix: Image insertion position at cursor position and Updated placeholder text. Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants