-
missing-headers-on-convertFromHTMLToContentBlocks - Including missing…
mitermayer committed with Facebook Github Bot 3 -
Extract inline styles from contentBlock
pdillon committed with Facebook Github Bot 8
-
gscottolson committed with Facebook Github Bot 6
Summary:When the browser is narrower than `.container` or taller than the content, `<html>` `background-color` is visible: <p align="center"> <img src="https://cloud.githubusercontent.com/assets/220979/13725333/ff857572-e863-11e5-92bf-33f8626014cc.png" width="400"> </p> _You can also see this issue if you decrease the browser’s zoom level._ **Changes:** - De-dupe the `html` selector - Move `body` `background-color` to `html` - Remove `body` rule - `html` properties Closes #201 Differential Revision: D3045903 fb-gh-sync-id: 53a4b4f211fb3329f33ed7e1054b51c8fd7d703d shipit-source-id: 53a4b4f211fb3329f33ed7e1054b51c8fd7d703d
-
Exporting getVisibleSelectionRect
Mayank Hinger committed with Facebook Github Bot 8Summary:Exporting getVisibleSelectionRect utility as discussed in the last comment of #169. This is needed to get the boundingClientRect for the visible DOM selection. Closes #199 Reviewed By: spicyj Differential Revision: D3042677 fb-gh-sync-id: 81f08c004eebba412dff70f224a2519fdb3a6808 shipit-source-id: 81f08c004eebba412dff70f224a2519fdb3a6808
-
alunyov committed with Facebook Github Bot 5
Reviewed By: spicyj Differential Revision: D3040295 fb-gh-sync-id: 409881cb25b7257b20e4ec7a32986bbaf174eaa1 shipit-source-id: 409881cb25b7257b20e4ec7a32986bbaf174eaa1
-
zpao committed with Facebook Github Bot 5
Summary:- Inline `process.env.NODE_ENV === 'production'` checks - Compress CSS - Add copyright headers to dist files It's not a *huge* difference on the size front but definitely better. And the copyright thing is something we should do regardless of the rest. <img width="591" alt="screen shot 2016-03-09 at 4 26 17 pm" src="https://cloud.githubusercontent.com/assets/8445/13655376/bc78d212-e613-11e5-8f39-0268bf4d32f2.png"> Closes #189 Differential Revision: D3034186 fb-gh-sync-id: ede05fcc42f4d3831edcd809adb204f3f6ddf8f2 shipit-source-id: ede05fcc42f4d3831edcd809adb204f3f6ddf8f2
-
Ensure we're using latest fbjs alpha
zpao committed with Facebook Github Bot 1Summary:Fresh installs will be already be using this but upgrades might not be, so lets just guarantee it Closes #193 Differential Revision: D3041517 fb-gh-sync-id: 3092033de7152bdd267e8b48c58892764c930ebd shipit-source-id: 3092033de7152bdd267e8b48c58892764c930ebd
-
Updates Quick Start examples to run as expected
kennethormandy committed with Facebook Github Bot 2Summary:Hey! Thanks so much for the hard work on this project. I’m just making my way through the documentation now, and I couldn’t get the Quick Start examples to run until I made the following changes. I have very little React experience, and even less with ES2015 stuff—it’s entirely possible I just misunderstood something in all these cases. Regardless, the examples didn’t work as-is for me, and to the best of my understand, these changes fix that. The one change I made that was maybe more of an opinion was turning: ```js const {editorState} = this.state; return <Editor editorState={editorState} onChange={this.onChange} /> ``` …into: ```js return <Editor editorState={this.state.editorState} onChange={this.onChange} /> ``` …which just reduced the complexity for me at the beginning, and had more in common with the initial Input example. Closes #180 Reviewed By: spicyj Differential Revision: D3034470 fb-gh-sync-id: c99ba4e24dd42a2c5a0634dfcc6c8faab8cd5b7c shipit-source-id: c99ba4e24dd42a2c5a0634dfcc6c8faab8cd5b7c
-
Expose html to block converter through Draft object
CLowbrow committed with Facebook Github Bot 2Summary:Optional second parameter to pass in a function that will generate a dom element from whichever implementation. Should help with #55 Closes #174 Reviewed By: hellendag Differential Revision: D3023635 fb-gh-sync-id: 71b83c05610279d67c6e84f29565ed645bc4be30 shipit-source-id: 71b83c05610279d67c6e84f29565ed645bc4be30
-
Improve internal paste behavior
hellendag committed with Facebook Github Bot 8Reviewed By: spicyj Differential Revision: D3025262 fb-gh-sync-id: c22dfcc271e0867ad0e0e81f76d4a51a08cca860 shipit-source-id: c22dfcc271e0867ad0e0e81f76d4a51a08cca860
-
Run build on prepublish so we don't publish incomplete packages
zpao committed with Facebook Github Bot 3Summary: Closes #186 Differential Revision: D3033435 fb-gh-sync-id: 8b344b681508e26fa878d093c2e666eb9b49da78 shipit-source-id: 8b344b681508e26fa878d093c2e666eb9b49da78
-
hellendag committed with Facebook Github Bot 6
-
upgrade to React 15 & suppress contentEditableWarning
nikgraf committed with Facebook Github Bot 7Summary:``` npm WARN EPEERINVALID draft-js@0.2.0 requires a peer of react@^0.14.0 but none was installed. npm WARN EPEERINVALID draft-js@0.2.0 requires a peer of react-dom@^0.14.0 but none was installed. ``` Closes #179 Differential Revision: D3028633 fb-gh-sync-id: 03110f8dc77ace8147176562702ec6c80449218a shipit-source-id: 03110f8dc77ace8147176562702ec6c80449218a
-
Move critical editor style into JS
hellendag committed with Facebook Github Bot 4Summary:There have been a number of bug reports caused by Draft.css not being included. The main one is that the editor can start flipping out if `white-space: pre-wrap` is not applied. Users should generally be including Draft.css, and should be aware of behavior gaps if they choose not to. Documenting this accordingly. Closes #159 Reviewed By: spicyj Differential Revision: D3013416 fb-gh-sync-id: 6423b84be619fa1013ef7babba30be8956456a97 shipit-source-id: 6423b84be619fa1013ef7babba30be8956456a97
-
Allow to pass handleDrop, similar to handleDroppedFiles
bkniffler committed with Facebook Github Bot 9Summary:This will allow to handle drops and suppress the default behavior if necessary. Closes #145 Reviewed By: ezequiel Differential Revision: D3004761 fb-gh-sync-id: 39aef0b8f8388ef6a1cb05917afc82a79e9a190b shipit-source-id: 39aef0b8f8388ef6a1cb05917afc82a79e9a190b
-
Add decoratedText prop to DecoratorComponent
hellendag committed with Facebook Github Bot 6Summary:Resolves #140 and #68. Tested with `console.log(this.props.decoratedText)` in render method of TokenSpan in entity.html. Closes #144 Reviewed By: ezequiel Differential Revision: D3002917 fb-gh-sync-id: 2451c82c74c0835217edcc7923c4430ae5ae3969 shipit-source-id: 2451c82c74c0835217edcc7923c4430ae5ae3969
-
generateBlockKey -> generateRandomKey
hellendag committed with Facebook Github Bot 4Summary:I'd like to generate an editor-level key, too. Might as well reuse the same module, since it's useful. Closes #135 Reviewed By: spicyj Differential Revision: D3000350 fb-gh-sync-id: e708a29fcccfdbcbbeeb0e981ab6e5cc01d52635 shipit-source-id: e708a29fcccfdbcbbeeb0e981ab6e5cc01d52635
-
Typo fix in getBlockForKey example
mjrussell committed with Facebook Github Bot 6Summary: Closes #134 Differential Revision: D2996962 fb-gh-sync-id: 542b449c38e3c679852283b184f03528b329c74a shipit-source-id: 542b449c38e3c679852283b184f03528b329c74a
-
Use Slackin link for Slack invites
hellendag committed with Facebook Github Bot 8Summary:Still not sure if we'll be moving over to Discord, but in the meantime this will streamline things. Closes #131 Differential Revision: D2996725 fb-gh-sync-id: 1b0c51682d4e79754da9ab23fa876fb64685a050 shipit-source-id: 1b0c51682d4e79754da9ab23fa876fb64685a050
-
Use es6-shim, mention polyfill requirement in docs
zpao committed with Facebook Github Bot 6 -
Including extra headings to the DraftPasteProcessor
mitermayer committed with Facebook Github Bot 5Summary:…to DraftPasteProcessors - Including missing headings Closes #118 Reviewed By: tasti Differential Revision: D2989580 fb-gh-sync-id: a7e6c44e61eb19a7629213ce1d6eedbb499267af shipit-source-id: a7e6c44e61eb19a7629213ce1d6eedbb499267af
-
hellendag committed with Facebook Github Bot 7
Reviewed By: spicyj Differential Revision: D2988045 fb-gh-sync-id: 91cd7db02efd0accdd5db1e044e94225033b1cc0 shipit-source-id: 91cd7db02efd0accdd5db1e044e94225033b1cc0
-
Add Slack signup info to readme
hellendag committed with Facebook Github Bot 1Summary: Closes #115 Differential Revision: D2987800 fb-gh-sync-id: 801b982e5271db5b719ced055a32c19c72cd7912 shipit-source-id: 801b982e5271db5b719ced055a32c19c72cd7912
-
Fix the link example to render links when rich text containing links …
brijeshb42 committed with Facebook Github Bot 2…are pasted Summary:Make the example for links consistent by using the same key (`url`) as defined by `draft-js` paste instead of `href` and use `LINK` in `Entity.create` instead of `link` to maintain consistency as suggested in [issue 112](#112). This PR enhances link example by: * Rendering links in pasted rich text. * Handling `ENTER` key press for link's url input box besides clicking on. Closes #114 Differential Revision: D2987774 fb-gh-sync-id: db461f8ecfc3590f185e4a7ef3041c771a0272dd shipit-source-id: db461f8ecfc3590f185e4a7ef3041c771a0272dd
-
garbles committed with Facebook Github Bot 5
Summary:Fixes linter warnings. Also adds linting to the CI build, but warnings still exit with `0` which doesn't cause the suite to fail. I'm not even sure whether you guys want the suite to fail on this condition; though the contributing docs asks users to make sure that the linter passes before submitting a PR. Closes #78 Reviewed By: spicyj Differential Revision: D2987193 fb-gh-sync-id: bfcf661be729fd9f27c65a8237973ce6ff25cb16 shipit-source-id: bfcf661be729fd9f27c65a8237973ce6ff25cb16
-
Exclude trailing block for type toggling if at zero offset
hellendag committed with Facebook Github Bot 5Summary:Resolves #86. In cases where the user triple-clicks on a block, then toggles the block type, it feels weird to have the trailing block also change block type. The `SelectionState` resulting from the triple-click is correct, but to improve the interaction here, let's discard the trailing block for this modifier. Closes #111 Reviewed By: spicyj Differential Revision: D2987166 fb-gh-sync-id: 66dea913955ac5eef354f3222ac5afd7e6fdb92d shipit-source-id: 66dea913955ac5eef354f3222ac5afd7e6fdb92d
-
Link example: Use regular input instead of window.prompt
hellendag committed with Facebook Github Bot 4 -
rgbkrk committed with Facebook Github Bot 9
Summary:To support users on 5.x and `npm 3`. All the examples worked for me, including the TeX one. Follow up to #31. Thank you so much for this library, I've been wondering about handling `contentEditable` cleanly with React for editor components for some time. Closes #37 Differential Revision: D2986309 fb-gh-sync-id: 1bc9202064594582dafd3104be19119ae09cf494 shipit-source-id: 1bc9202064594582dafd3104be19119ae09cf494
-
extra-headings-support - Adding support for other blockmode headings
mitermayer committed with Facebook Github Bot 9Summary:- adding support for other blockmode headings Closes #96 Reviewed By: spicyj Differential Revision: D2981702 fb-gh-sync-id: ed14c7fd66291071b8d1ced493c19540909b335e shipit-source-id: ed14c7fd66291071b8d1ced493c19540909b335e
-
Re-render DraftEditorLeaf when style changes
hellendag committed with Facebook Github Bot 5Reviewed By: ezequiel Differential Revision: D2985255 fb-gh-sync-id: 9f88e8c29efbccfa2612313bb3af60c67cdbdfae shipit-source-id: 9f88e8c29efbccfa2612313bb3af60c67cdbdfae
-
Fix some lint errors in website
spicyj committed with Facebook Github Bot 1Summary:Fixes most errors and some warnings, especially the autofix ones. - copyright headers - no unicode in source files - `.indexOf('javascript:')` is legit; suppress the eslint error - trailing commas, semicolons bypass-lint Reviewed By: hellendag Differential Revision: D2981752 fb-gh-sync-id: 5ceb842c215c5787aa2c981a1eae3254f19ef687 shipit-source-id: 5ceb842c215c5787aa2c981a1eae3254f19ef687