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

feat(api): add new getDraftEditorPastedContent method #226

Merged
merged 4 commits into from
Aug 16, 2020

Conversation

IrinaZorkova
Copy link
Contributor

Sometimes I need to do some transformation with content, before past it in the state. For example: to rebuild styles of content, if the current editor does not support them. I can't rebuild state - because I'll lose the selection.
photo_2020-08-10_10-35-42

Please take a look. Thank you for your work

Copy link
Owner

@thibaudcolas thibaudcolas 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 @IrinaZorkova, this looks great. It would be nice to have some documentation for this in the README (just mentioning that this method is available and what it’s for), but I think the change is worth it even without.

@thibaudcolas thibaudcolas changed the title Additional function getDraftEditorPastedContent feat(api): add new getDraftEditorPastedContent method Aug 16, 2020
@thibaudcolas thibaudcolas merged commit fcaada5 into thibaudcolas:master Aug 16, 2020
thibaudcolas added a commit that referenced this pull request Aug 16, 2020
# [1.1.0](v1.0.1...v1.1.0) (2020-08-16)

### Features

* **api:** add new getDraftEditorPastedContent method ([#226](#226)) ([fcaada5](fcaada5))
@thibaudcolas
Copy link
Owner

🎉 This pull request is included in v1.1.0, available on npm: [email protected].

Generated by 📦🚀 semantic-release

thibaudcolas added a commit that referenced this pull request Oct 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants