Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

[MM-25785] allow pasting tables into edit post, keep caret position #5782

Merged
merged 4 commits into from
Jun 26, 2020

Conversation

Willyfrog
Copy link
Contributor

Summary

fix adding tables into post edits
while working on it, i found it wasn't keeping caretposition when pasting tables from google docs spreadhseets, so I changed that as well

Ticket Link

MM-25785

@Willyfrog Willyfrog added 2: Dev Review Requires review by a core commiter 3: QA Review Requires review by a QA tester labels Jun 23, 2020
@Willyfrog Willyfrog added this to the v5.25.0 milestone Jun 23, 2020
@Willyfrog Willyfrog requested review from sudheerDev and a team June 23, 2020 17:01
@ghost ghost requested review from marianunez and removed request for a team June 23, 2020 17:01
@amyblais amyblais added the CherryPick/Approved Meant for the quality or patch release tracked in the milestone label Jun 23, 2020
utils/paste.tsx Outdated Show resolved Hide resolved
utils/paste.tsx Show resolved Hide resolved
Co-authored-by: Maria A Nunez <[email protected]>
@Willyfrog Willyfrog added the Setup Cloud Test Server Setup a test server using Mattermost Cloud label Jun 25, 2020
@sudheerDev sudheerDev removed the 2: Dev Review Requires review by a core commiter label Jun 25, 2020
Copy link
Contributor

@jgilliam17 jgilliam17 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @Willyfrog
Tested, looks good to merge.

  • Verified tables pasting on edit post modal, works the same as in comment text box. Verified caret positioning on edit post as well.

@jgilliam17 jgilliam17 added 4: Reviews Complete All reviewers have approved the pull request and removed 3: QA Review Requires review by a QA tester Setup Cloud Test Server Setup a test server using Mattermost Cloud labels Jun 26, 2020
@mm-cloud-bot
Copy link

Test server destroyed

@Willyfrog Willyfrog merged commit 2d0a531 into mattermost:master Jun 26, 2020
@mattermod mattermod added CherryPick/Done Successfully cherry-picked to the quality or patch release tracked in the milestone and removed CherryPick/Approved Meant for the quality or patch release tracked in the milestone labels Jun 26, 2020
mattermod pushed a commit that referenced this pull request Jun 26, 2020
@amyblais amyblais added the Changelog/Done Required changelog entry has been written label Jun 29, 2020
@amyblais amyblais added the Docs/Not Needed Does not require documentation label Jun 29, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
4: Reviews Complete All reviewers have approved the pull request Changelog/Done Required changelog entry has been written CherryPick/Done Successfully cherry-picked to the quality or patch release tracked in the milestone Docs/Not Needed Does not require documentation
Projects
None yet
7 participants