-
Notifications
You must be signed in to change notification settings - Fork 72
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
Inline images feature #462
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good, I'm going to test it now 👀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
so cool |
|
||
return text.replaceAll('\r\n', '\n'); | ||
// Force letter removal if the input value haven't changed but input type is 'delete' | ||
if (text === target.value && inputType.includes('delete')) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Coming from Expensify/App#51466, since inputType
can be undefined it caused an issue here when trying to call includes
on an undefined
value.
Details
This PR adds the ✨
inline image preview feature
✨ to the Live Markdown Input on the web.inline.images.mov
Change log:
block
element wrappers, that wraps the inline image markdown and text that is before it. Thanks to this structure change, the image preview appears as a block below the markdownRelated Issues
GH_LINK
Manual Tests
max-height
andmaxWidth
of the previewBackspace
pressLinked PRs