-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Add Section and Article to DefaultBlockRenderMap #2212
Conversation
Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need the corporate CLA signed. If you have received this in error or have any questions, please contact us at cla@fb.com. Thanks! |
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks! |
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.
@claudiopro has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
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.
This PR is good but it's missing changes to flow types to ensure we can validate block types correctly.
Hi @Tarun047, the linter check is failing because it's missing changes to flow types to ensure we can validate block types correctly. Please apply the suggested changes and submit again 🙏 |
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.
@mrkev has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
Summary: *Before* submitting a pull request, please make sure the following is done... 1. Fork the repo and create your branch from `master`. 2. If you've added code that should be tested, add tests! 3. If you've changed APIs, update the documentation. 4. Ensure that: * The test suite passes (`npm test`) * Your code lints (`npm run lint`) and passes Flow (`npm run flow`) * You have followed the [testing guidelines](https://github.com/facebook/draft-js/wiki/Testing-for-Pull-Requests) 5. If you haven't already, complete the [CLA](https://code.facebook.com/cla). Please use the simple form below as a guideline for describing your pull request. Thanks for contributing to Draft.js! - **Summary** Fixes facebookarchive#2074 Updated the default block render map to have the section and article tags. Pull Request resolved: facebookarchive#2212 Reviewed By: claudiopro Differential Revision: D18246366 Pulled By: mrkev fbshipit-source-id: 144f7721d92d6efcbb5c969ba992841eb9bd5f15
Summary: *Before* submitting a pull request, please make sure the following is done... 1. Fork the repo and create your branch from `master`. 2. If you've added code that should be tested, add tests! 3. If you've changed APIs, update the documentation. 4. Ensure that: * The test suite passes (`npm test`) * Your code lints (`npm run lint`) and passes Flow (`npm run flow`) * You have followed the [testing guidelines](https://github.com/facebook/draft-js/wiki/Testing-for-Pull-Requests) 5. If you haven't already, complete the [CLA](https://code.facebook.com/cla). Please use the simple form below as a guideline for describing your pull request. Thanks for contributing to Draft.js! - **Summary** Fixes facebookarchive#2074 Updated the default block render map to have the section and article tags. Pull Request resolved: facebookarchive#2212 Reviewed By: claudiopro Differential Revision: D18246366 Pulled By: mrkev fbshipit-source-id: 144f7721d92d6efcbb5c969ba992841eb9bd5f15
`draft-js` already has support for article and section blocks(facebookarchive/draft-js#2212). Due to the lack of support for these blocks from draft-convert, this results in an error: convertToHTML: missing HTML definition for block with type section
Summary: *Before* submitting a pull request, please make sure the following is done... 1. Fork the repo and create your branch from `master`. 2. If you've added code that should be tested, add tests! 3. If you've changed APIs, update the documentation. 4. Ensure that: * The test suite passes (`npm test`) * Your code lints (`npm run lint`) and passes Flow (`npm run flow`) * You have followed the [testing guidelines](https://github.com/facebook/draft-js/wiki/Testing-for-Pull-Requests) 5. If you haven't already, complete the [CLA](https://code.facebook.com/cla). Please use the simple form below as a guideline for describing your pull request. Thanks for contributing to Draft.js! - **Summary** Fixes facebookarchive/draft-js#2074 Updated the default block render map to have the section and article tags. Pull Request resolved: facebookarchive/draft-js#2212 Reviewed By: claudiopro Differential Revision: D18246366 Pulled By: mrkev fbshipit-source-id: 144f7721d92d6efcbb5c969ba992841eb9bd5f15
Before submitting a pull request, please make sure the following is done...
master
.npm test
)npm run lint
) and passes Flow (npm run flow
)Please use the simple form below as a guideline for describing your pull request.
Thanks for contributing to Draft.js!
Summary
Fixes #2074
Updated the default block render map to have the section and article tags.