All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- Bump react and react-dom dependencies to support versions up to 18.
- Revert "Store extendedBlockRenderMap in state so it can be updated when readOnly changes its value (#325)" as a bug was found
- Store extendedBlockRenderMap in state so it can be updated when readOnly changes its value (#325)
- Bump http-proxy from 1.18.0 to 1.18.1
- Bump node-sass from 4.13.0 to 4.14.1
- Bump elliptic from 6.5.2 to 6.5.3 (#321)
- Bump lodash from 4.17.15 to 4.17.19
- Bump websocket-extensions from 0.1.3 to 0.1.4 (#316)
- Fixed movableBlocks when readOnly is enabled
- Fixed sass error
- Toolbar Left Positioning (#310)
- Enabling movableBlocks in Website demo
- Bump acorn from 5.7.3 to 5.7.4
- Mispositioning toolbar (#294)
- Avoid preventDefault in Toolbar for select input (#270)
- Update draft-js version to 0.11.4 (#297)
- docs(overview): Improve usage docs (#301)
- Prevent
false
from being appended into Control's component className (#307) - Remove return type annotation on method
externalKeyBindings
(#306)
- Copied text with movableBlocks active has extra empty spaces on Chrome (#302)
- Focus loss in plugins with react-select dependency (#288)
- Data loss when swapping plugin blocks with blur update (#286)
- Placeholder trimmed when movableBlocks prop is active (#283)
- Add onAction function to listen to reorder blocks button clicks (#282)
- Mantain the plugin block focus in edit (#276)
- Sidebar error when there's no onAction prop (#276)
- Enable reorder blocks (#272)
- Add the hability to listen sidebar/plugins actions (#273)
- Bad rendering when attempting to remove a blockquote (#187)
- Read only state on image block description (#262)
- Read only media content (#261)
- Avoiding errors when data prop is empty in atomic block (#245)
- Allow BlockInput component to be rendered with custom
type
attribute (#244)
- Conditionally prevent default on toolbar mousedown when not input (#233)
- Allow optional shouldDisplayToolbarFn more control over rendering the toolbar (#233)
- Remove state changes in component will receive props (#233)
- Plugins now have an error boundary so the editor won't crash on plugin errors
- Custom actions now can handle the active state of button on toolbar (#224)
- HandleBlur with timeout sets states after component unmounted (#213)
- Add optional prop "id" to MegadraftEditor (#222)
- fix shouldDisplayToolbarFn #212
- Fixed toolbar arrow positioning on screen edges
- Remade internationalization, dropping support for i18next
- Toolbar actions now can access the Editor's
onChange
.
Sidebar
: Display sidebar ToggleButton only when needed, withhideSidebarOnBlur
prop.
- Improving indentation with prettier + eslint + lint-staged + husky
- i18n: New prop
language
forMegadraftEditor
, default is 'en-US'.__()
has been deprecated and will be removed soon. You can move this code to your app, instead.__()
code can be found at Github Gist.
- Toolbar: Prevent exception in Toolbar with readOnly true
- LinkInput: Fix placeholder color when URL is invalid
- Docs: Fixed toolbar customization example
- Editor: Fixes an out of sync editor state bug on plugins
- Editor: Checking if next block exists for media removal
- Changelog.md for notable changes
- Fix toolbar and refactor positioning
- Refactoring sidebar positioning
- Don't prevent tab events
- MegadraftEditor now accepts a
blockRenderFn
prop similar to draft-js to customize block components.
- Migrated tests from mocha/chai/sinon to jest.
- Toolbar is now shown after a delay of 16ms to prevent some bugs.