Skip to content

Commit

Permalink
Build.
Browse files Browse the repository at this point in the history
  • Loading branch information
makenosound committed Feb 15, 2017
1 parent 1328e5c commit e8d0beb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

# v1.0.2 2017-02-15

* Bring immutable version in line with draft-js — [ta, @sugarshin](https://github.com/icelab/draft-js-block-breakout-plugin/pull/6)

# v1.0.1 2016-12-16

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function blockBreakoutPlugin() {
var contentState = editorState.getCurrentContent();
var currentBlock = contentState.getBlockForKey(selection.getEndKey());
var endOffset = selection.getEndOffset();
var atEndOfBlock = endOffset === currentBlock.getCharacterList().count();
var atEndOfBlock = endOffset === currentBlock.getLength();
var atStartOfBlock = endOffset === 0;

// Check we’re at the start/end of the current block
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": "draft-js-block-breakout-plugin",
"version": "1.0.1",
"version": "1.0.2",
"description": "Break out of block types as you type.",
"main": "lib/index.js",
"scripts": {
Expand Down

0 comments on commit e8d0beb

Please sign in to comment.