Skip to content

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

Merged
sriramveeraghanta merged 3 commits into
release-0.15from
fix/images
Dec 22, 2023
Merged

fix: Image insertion position at cursor position and Updated placeholder text.#3224
sriramveeraghanta merged 3 commits into
release-0.15from
fix/images

Conversation

@Palanikannan1437

@Palanikannan1437 Palanikannan1437 commented Dec 21, 2023

Copy link
Copy Markdown
Contributor

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
@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
JayashTripathy pushed a commit that referenced this pull request May 22, 2025
Sync: Community Changes
DoctorFogarty pushed a commit to DoctorFogarty/plane that referenced this pull request Aug 7, 2026
…lder text. (makeplane#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".
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.

2 participants