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

Add support for pasting text for uploaded file caption #254

Conversation

johnny-hsiao
Copy link

@johnny-hsiao johnny-hsiao commented Nov 25, 2022

Hi Miguel,

We noticed that when a user paste a blurb of text for an uploaded file's caption, the conversation breaks. Upon further investigation, it appears that it is because Dante doesn't support type of "file" when pasting text. In this PR, I am adding a support for that case, as well as an example in Dante2 to show Upload file.

This screenshot shows that data becomes {} when pasting a text for file caption:
Screen Shot 2022-11-25 at 5 37 48 PM

After applying the fix, the data has file info again:
Screen Shot 2022-11-25 at 5 38 25 PM

File component in doc:
Screen Shot 2022-11-25 at 6 07 41 PM

Screen Shot 2022-11-25 at 6 12 21 PM

@johnny-hsiao johnny-hsiao force-pushed the feature/paste-txt-for-file-caption branch from 3ad3627 to 711777b Compare November 25, 2022 23:12
@michelson michelson merged commit b258084 into michelson:master Nov 30, 2022
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.

3 participants