Skip to content

Commit

Permalink
Release 0.5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
vierno committed Aug 29, 2018
1 parent b687cb8 commit e87deaa
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
1 change: 0 additions & 1 deletion test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion tests/components/toolbar_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
});
});

Expand Down
6 changes: 4 additions & 2 deletions website/components/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@ export default class Header extends React.Component {
text editor ever.
</h1>
<div className="hero__description">
Megadraft is a Rich Text editor built on top of<br />
Facebook's draft.js featuring a nice default<br />
Megadraft is a Rich Text editor built on top of
<br />
Facebook's draft.js featuring a nice default
<br />
base of plugins and extensibility.
</div>
</div>
Expand Down

0 comments on commit e87deaa

Please sign in to comment.