diff --git a/CHANGELOG.md b/CHANGELOG.md index 6cc4d697..20831f00 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +## 0.5.2 - 2018-08-29 +### Added +- Toolbar actions now can access the Editor's `onChange`. + ## 0.5.1 - 2018-07-27 ### Added - `Sidebar`: Display sidebar ToggleButton only when needed, with diff --git a/package.json b/package.json index f7ae22db..ca15cc24 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "megadraft", - "version": "0.5.1", + "version": "0.5.2", "description": "Rich Text editor built on top of draft.js", "main": "lib/Megadraft.js", "dependencies": { diff --git a/test.js b/test.js index 51649938..6df2206c 100644 --- a/test.js +++ b/test.js @@ -2,7 +2,6 @@ process.env.NODE_ENV = "test"; -const jest = require("jest"); const argv = process.argv.slice(2); // Watch unless on CI or in coverage mode diff --git a/tests/components/toolbar_test.js b/tests/components/toolbar_test.js index b8700f1a..4b7be583 100644 --- a/tests/components/toolbar_test.js +++ b/tests/components/toolbar_test.js @@ -189,7 +189,10 @@ describe("Toolbar Component", () => { button.simulate("click"); - expect(testContext.actions[5].action).toHaveBeenCalledWith(editorState); + expect(testContext.actions[5].action).toHaveBeenCalledWith( + editorState, + testContext.wrapper.find(Toolbar).props().onChange + ); }); }); diff --git a/website/components/header.js b/website/components/header.js index 0ee120c2..a27e249f 100644 --- a/website/components/header.js +++ b/website/components/header.js @@ -27,8 +27,10 @@ export default class Header extends React.Component { text editor ever.
- Megadraft is a Rich Text editor built on top of
- Facebook's draft.js featuring a nice default
+ Megadraft is a Rich Text editor built on top of +
+ Facebook's draft.js featuring a nice default +
base of plugins and extensibility.