# Changelog
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).
## [Unreleased]
- update: Increase length of prefix and suffix in getLocalHighlightText
## [7.2.2] - 2020-02-28
- fix: only trigger collab plugin on transactions containing steps to avoid double-sending changes.
## [7.2.1] - 2020-02-20
- update: Add from, to values to getLocalHighlightText()
## [7.2.0] - 2020-01-15
- Introduce setEditorSelectionFromClick utility
## [7.1.0] - 2020-01-13
- Set { selectable:false } for most base schema nodes like headers and lists
## [7.0.0] - 2019-12-20
- Add domEvents plugin that captures latestDomEvent and adds it to editorChangeObject
- Replace importHtml with getDocForHtmlString
- Add onScrollToSelection prop to Editor so callers can interfere with scrolling
## [6.6.2] - 2019-11-25
- Cache initial call to renderStatic() with React.memo() for performance improvement.
## [6.6.1] - 2019-11-19
- Fix a CSS issue that broke table editing in Firefox
- Update prosemirror-tables to v0.9.5
## [6.6.0] - 2019-11-18
- Add optional `href` attribute to citations and footnotes, allowing them to be rendered as links
- Update (s)css structure so it can be bundled by PubPub's document exporter
- Replace `rowspan` with `rowSpan` for React
- fix: onChange getShortcutValues index bug
## [6.5.0] - 2019-11-11
- dev: Add onKeyPress handler prop to Editor component
## [6.4.0] - 2019-11-11
- dev: Refactor collaborative plugin. Improves performance and handles a few edge-case bugs.
## [6.3.1] - 2019-11-08
- When renderForPandoc is true, render math `script` tags using React and dangerouslySetInnerHTML
to prevent ReactDOM from adding HTML character entities to the tag content.
## [6.3.0] - 2019-11-08
- Render media captions with div instead of span
- New renderForPandoc attr for equations
- Replace `colspan` with `colSpan` for React
## [6.2.9] - 2019-10-07
- Add new importDocJson utility for PubPub to consume
- Add fixedHeader attr to `heading` schema type
## [6.2.8] - 2019-10-01
- Shim `fs` require from `css` dependency in browser environment.
## [6.2.7] - 2019-09-18
- fix: getNotes citation keying bug
- update: Tweak margin on float figures
## [6.2.6] - 2019-09-06
- fix: Add left/right padding to float figures
## [6.2.5] - 2019-09-06
- fix: Temporarily fix for an issue with React-rendering of editor content with inline styles
## [6.2.4] - 2019-09-06
- fix: Fixed an issue with file embeds crashing the editor under certain circumstances
## [6.2.2] - 2019-09-06
- fix: Paste collab sync bug
## [6.2.1] - 2019-09-06
- fix: Image copy and paste bug
## [6.2.0] - 2019-08-22
- update: add getNotes function
- update: Move to native prosemirror rendering rather than nodeviews
- fix: Collaborative lint and readOnly catch
## [6.1.5] - 2019-08-22
- fix: Handle setSelection properly to avoid crashes casued by new prosemirror-state
## [6.1.4] - 2019-08-08
- fix: mostRecentKey calc type error
## [6.1.3] - 2019-08-01
- update: Do not render placeholder if no placeholder prop has been passed in
## [6.1.2] - 2019-08-01
- fix: getShortcutValues position bug
- fix: Handle mostRecentKey calc for very large step arrays
## [6.1.1] - 2019-08-01
- fix: Remove testing error
## [6.1.0] - 2019-07-23
- feature: Add onError prop that will be called with transaction and firebase errors.
- dev: Simplify handling of collab meta keys
## [6.0.7] - 2019-07-23
- fix: Use https for git package
## [6.0.6] - 2019-07-23
- fix: Use prosemirror-view hotfix to handle selection bug.
## [6.0.5] - 2019-07-22
- fix: Proper check for prosemirror-table plugin
## [6.0.4] - 2019-07-18
- fix: Draw columns properly in readOnly mode.
- fix: Add try around discussion restore selection.
## [6.0.3] - 2019-07-18
- dev: Add to list of steps to not send.
## [6.0.2] - 2019-07-18
- fix: Index error in citation plugin.
## [6.0.1] - 2019-07-16
- fix: Do not show collaborative cursors if isReadOnly is set.
## [6.0.0] - 2019-07-15
- update: collaborative plugin now fires an onUpdateLatestKey callback with the latest remote
key from Firebase.
- update: BREAKING - collaborationOptions updated to take ref, rather than firebase credentials
- update: BREAKING - new firebase schema to support merges, branches, and other metadata.
## [5.3.7] - 2019-03-22
- fix: usedHighlights infinite transaction loop bug
## [5.3.6] - 2019-03-05
- update: Add and refactor cursor manipulation utilties
## [5.3.5] - 2019-03-01
- fix: Remove postinstall githook copying because it caused `npm install @pubpub/editor` to fail
## [5.3.4] - 2019-03-01
- update: Handle undefined editor in getText and getJSON
- dev: Add pre-push hooks to run lint
## [5.3.3] - 2019-02-26
- fix: Grab node schema defaultOptions from right place
## [5.3.2] - 2019-01-06
- feature: Add moveSelectionToStart and moveSelectionToEnd utility functions
## [5.3.1] - 2018-12-31
- feature: Add marksAtSelection function to utilities
## [5.3.0] - 2018-12-28
- feature: Support audio files
- fix: Update File component to use bp3 classnames
- fix: Video pointer event handling in editor
- fix: Image and Iframe draggable flag
## [5.2.3] - 2018-12-27
- fix: Update blocktype is active to properly set value when at depth 0
## [5.2.2] - 2018-12-27
- dev: Update prosemirror and react dependencies
## [5.2.1] - 2018-12-27
- update: Add paragraph and code block to Block Toggle in menuItems
## [5.2.0] - 2018-12-26
- feature: Add `canRun` boolean to onChange menuItems object.
- feature: Add `handleSingleClick` and `handleDoubleClick` props to Editor component
## [5.1.2] - 2018-11-12
- update: headerIds more cleanly handles additional whitespace.
## [5.1.1] - 2018-11-12
- update: headerIds module trims after replacing non alphanumeric characters to avoid leading or trailing hyphens.
## [5.1.0] - 2018-11-08
- feature: Highlight quote now takes a `generateActionElement` function in options that can be used to create an element for scrolling, highlighting, or other highlight actions.
- update: **Breaking** HighlightQuote no longer provides scroller or highlight functionality.
- update: Add download attribute to File component links.
- fix: Highlight plugin properly checks doc nodeSize.
- fix: Highlight plugin properly handles textQuote errors.
## [5.0.4] - 2018-10-29
- fix: Parse more variants of strikethrough dom nodes.
## [5.0.3] - 2018-10-29
- fix: importHtml more properly inserts Slice rather than looping through nodes.
## [5.0.2] - 2018-10-21
- fix: Properly referencing new prosemirror-compress-pubpub package.
## [5.0.1] - 2018-10-21
- fix: Use new prosemirror-compress package that solves Safari Object prototype bug.
## [5.0.0] - 2018-10-16
- update: Breaking - rebuilt architecture that simplifies and cleans use of the PubPub editor. The editor is no longer responsible for interfaces to nodeviews and menus. The data necessary to build such menus are passed up in the onChange response.
## [4.11.0] - 2018-06-20
- feature: Add importHtml function to