- Now, the toolbar buttons also accept a react component instead of just a string as label. This can be used to customize the icon of the toolbar button. For ex - in the demo, blockquote and link buttons are svg components which previously were just string labels.
- Added a link info tooltip that shows up when cursor is inside a word with hyperlink.
- The tooltip has option to edit that link or unlink.
- Added medium's shortcut to add a link to text selection
- CTRL/CMD + K -> Add link
- CTRL/CMD + SHIFT + K -> Remove link if cursor is inside a word with link.
- Optimized build process by minifying css and removing prop-types from the build files.
- Migrated to React 15.5 (@baldwmic) with external
prop-types
dependency.
- Moved away from the deprecated
Entity
usage ofdraft-js
and updated to draft-js 0.10.1 (@valthon) - Fix for unintentional page navigation when adding links (@J00nz)
- Fix where first click on side (+) button made it dissappear (@J00nz)
- Accept only image files through file selector (@anthonyjgrove)
- Added medium-draft-exporter to convert the draft-js JSON data to HTML.
- Moved away from string refs to recommended refs in React.
- Updated to use draft-js v0.9.1
- Namespaced all classes to start with
md-
- Add relevant class to editor container based on whether editing is enabled or disabled