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 insert #256

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cristianoccazinsp
Copy link

On iOS, if your html is empty and you call insertImage, it does nothing but adding an empty
tag.

With this PR, we add an artificial break line after the image is inserted so the above is fixed.

@stulip
Copy link
Member

stulip commented Apr 3, 2023

Image Insert is not a must

@nick-mccomb-easygo
Copy link

nick-mccomb-easygo commented Oct 9, 2024

Focus the RichEditor before inserting the image
editorRef.current?.focusContentEditor();
then
editorRef.current?.insertImage(...

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

Successfully merging this pull request may close these issues.

4 participants