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

Implement Image Insertion Functionality in Text Editor with Block-Level Display #185

Open
8 tasks
rcAsironman opened this issue Oct 8, 2024 · 0 comments · May be fixed by #189
Open
8 tasks

Implement Image Insertion Functionality in Text Editor with Block-Level Display #185

rcAsironman opened this issue Oct 8, 2024 · 0 comments · May be fixed by #189

Comments

@rcAsironman
Copy link
Collaborator

Description

The basic text editor has been set up. Your task is to enhance it by allowing users to insert or attach images when they click on the image icon(tap on it) -> camera icon(to upload an image ) in the AddNoteScreen which is in (AddNoteScreen.tsx file).

The inserted/attached image should be displayed as a block-level element, meaning:

  • It should occupy the full width of the editor (or container).

  • Any new text should start on a new line after the image.

If the cursor is still present in a sentence and the user tries to insert a new image, the image should automatically start on a new line.

Tasks

  • Understand the current functionality of mage insertion.
  • Write comments for better understanding.
  • The attached Image size should be 100px(width) X 100px(height)
  • Write test cases for your code.
  • Run the App on your local device/machine.

Acceptance Criteria

  • All Test cases should Pass.
  • The Image Insertion functionality should work properly as mentioned above.
  • The App should run on your local device/machine without any issues.

Reference
Screenshot 2024-10-08 at 9 26 05 AM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants