Skip to content

Releases: globocom/megadraft

Release 0.6.4

23 May 14:01
Compare
Choose a tag to compare

Added

  • Plugins now have an error boundary so the editor won't crash on plugin errors

Modified

  • Custom actions now can handle the active state of button on toolbar (#224)

Release 0.6.3

21 Nov 21:37
Compare
Choose a tag to compare

Fixed

  • HandleBlur with timeout sets states after component unmounted (#213)

Added

  • Add optional prop "id" to MegadraftEditor (#222)

Release 0.6.2

09 Oct 20:55
Compare
Choose a tag to compare

Fixed

  • fix shouldDisplayToolbarFn #212

Release 0.6.0

09 Oct 20:54
Compare
Choose a tag to compare

Fixed

  • Fixed toolbar arrow positioning on screen edges

Breaking Changes

  • Remade internationalization, dropping support for i18next

Release 0.5.2

09 Oct 20:54
Compare
Choose a tag to compare

Added

  • Toolbar actions now can access the Editor's onChange.

Release 0.5.1

27 Jul 13:14
Compare
Choose a tag to compare

Added

  • Sidebar: Display sidebar ToggleButton only when needed, with hideSidebarOnBlur prop.

Changed

  • Improving indentation with prettier + eslint + lint-staged + husky

Release 0.5.0

10 Jul 19:45
Compare
Choose a tag to compare

Deprecated

__() has been deprecated and will be removed soon. You can move this code to your app, instead. __() code can be found at Github Gist.

Added

  • i18n: New prop language for MegadraftEditor, default is 'en-US'.

Fixed

  • 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

0.4.37

11 Apr 20:42
Compare
Choose a tag to compare

Added

  • Changelog.md for notable changes

Fixed

  • Fix toolbar and refactor positioning
  • Refactoring sidebar positioning
  • Don't prevent tab events

0.4.36

13 Mar 19:39
Compare
Choose a tag to compare

Fixed

  • Toolbar is now shown after a delay of 16ms to prevent some bugs.

0.4.35

13 Mar 19:40
Compare
Choose a tag to compare

Added

  • MegadraftEditor now accepts a blockRenderFn prop similar to draft-js to customize block components.

Changed

  • Migrated tests from mocha/chai/sinon to jest.