# Changelog

**Current version: 0.8.0**

## 0.8.x

### ????
- [ ] Improve edge content pasting.
- [ ] Add undo / redo functionality.
- [ ] Allow selection of individual list items.
- [ ] Automated testing for copy / paste.

### 0.8.2 - Small fixes
* Improve list blocks in Chrome where empty item drops down a line.
* Added add button to bottom of quote blocks.

### 0.8.1 - Add Copy / Paste
* Selection keyboard behaviour.
* Selection mouse behaviour.
* Native browser selection behaviour.
* Enable paste of non-text content.
* Enable cut of blocks.
* Cross browser fixes / testing.
* Improve Firefox content pasting.

### 0.8.0
* Add Copy all to the editor
* Implement Selection Handler
* Block level selection.
* Hide new functionality behing feature flags.

## 0.7.x

### 0.7.5

* Separate block positioner select data to improve performance. https://github.com/madebymany/sir-trevor-js/pull/408

### 0.7.4

* Fix `config.focusOnInit` to work with non text blocks by removing default `onBlockRender` that is no longer needed.

### 0.7.3

* Preserve word list items when pasting.
* Add basic support for IE11 / Edge.

### 0.7.2

* Improve navigation within list blocks.
* Improve caret positioning on text blocks on removal.

### 0.7.1

* Reverted

### 0.7.0

* Upgrade to latest babel / webpack.

## 0.6.x

### 0.6.4

* Modified keyboard formatting handling to allow for better external ctrl usage (https://github.com/madebymany/sir-trevor-js/issues/516)

### 0.6.3

* Fixed bug in multiline editing in Safari 10 (https://github.com/madebymany/sir-trevor-js/issues/519)

### 0.6.2

* Update Twitter block to latest syntax matching from `iframe` to `twitterwidget`

### 0.6.1

### 0.6.0

* New interface

## 0.5.x

### 0.5.0

* Added Scribe for better text formatting rather than custom markdown for better extensibility
* Multieditable block mixin added for when blocks contain more than 1 formattable textarea
* Switched build process from Browserify to Webpack
* Added basic integration tests

## 0.4.x

### 0.4.0

* Refactored each instance to have it's own mediator object
* Added a new block manager that handles block creation, deletion etc
* Clean up the block store with more logical names
* Cleaned up file names to have `-` conventions
* Simplified the editor store

## 0.3.x

### 0.3.3

* Refactored upload triggers, now handled by Ajaxable mixin
* Slight change to the `Image` block – no longer sets the button title to 'Please wait...' on upload
* Escaped `class` names and other minor fixes so including ST doesn't blow up IE 7 / 8
* Added `toMarkdown` `aggresiveHTMLStrip` default to not strip tags that have whitespace after the opening `<` character (#168)
* Pass the block to the `block:remove` trigger
* Add the block ID to all other block triggers

### 0.3.2

* Added new controllable mixin for adding new functionality to blocks (https://github.com/madebymany/sir-trevor-js/pull/118)
* Removed Source Sans from the CSS file
* Added a dataType: 'json' to the uploader
* Added a `getInstance` method to retrieve editor instances
* Fixed `.st-text-block--heading` class to have `min-height: 0` not `auto`.
* Added mailto support to the link regex

### 0.3.1

* Localise titles of the tweet & heading blocks
* Defer the execution of internationalising the delete text, drop text, upload text and list block cite text until Sir Trevor has intialised.
* Add the heading title to the locales files
* Swap the onBlockRender method to be executed *after* the block $el is appended onto the DOM by emitting an event
* Added a `destroy` method for all Renderable views
* Added a `destroy` and `reinitialize` method for a `SirTrevor.Editor` instance
* Modified the Video block to allow for more providers to be added.

### 0.3.0

* I18n support (in EN / DE) using the new `i18n.t` helper
* Support for the I18next library (optional dependency)
* Add support for Underscore >= 1.5.0
* Support for multi-worded block types like OrderedList through snake casing on the block type
* Better markdown support for italics and bolds, fixes issue with markdown hating on spaces.
* Improved paste support, stripping out comments and other nasties
* Improved the format bar positioning
* Moved the Eventable block into it's own repository
* Remove blocks instantly if they are empty
* Add method to define if a block is empty (`isEmpty`)
* Fix the formatters not being called in `to-html.js` and `to-markdown.js`
* Use all inputs in `toData` not just `text` inputs. Note inputs must have a `name` attribute to be included in the serialized content.
