Releases: yabwe/medium-editor
Releases · yabwe/medium-editor
2.4.0
- Split source code into several files for better development flow
- Make saveSelection and restoreSelection more consistant cross browser
- Use document.queryCommandState for some button toolbar states
- Add selection storage
- Call extensions deactivate when deactivating the editor
- Turn Anchor button into an extension
2.3.0
- Fix various selection and positioning bugs
- Introduce commands as combination of buttons and extensions
- Update aria label so that setting secondHeader activates the toolbar
- Don't use styles for detecting underline + strikethrough
- Fix 'imageDragging: false' option
- Fix list item tab identation
- Add extension onHide command
2.2.0
- Fix bug in getSelectedParentElement + Fix tests in browsers
- Fall back to shimmed insertHTML in cases where firefox throws
when calling insertHTML - Prevent "Argument not optional" error
- Prevent infinite loop after findAdjacentTextNodeWithContent
- Remove cleanups from contenteditable false areas
- Firefox fix: Don't modify value of input before calling execCommand()
- Fix selection issue for clean pasted html test case in firefox
- Add image drag and drop support
2.1.3
- Fix issue with multiple elements with the same class on the same editor instance
2.1.2
- Specify default npm registry (http://registry.npmjs.org)
2.1.1 added the following:
- Adds support for newlines in placeholder attribute
- Adds support and documentation for new toolbar extensions
- Adds support for changing 'open in new window' label text
- Fixes bug where
nodeValue
could unexpectedly be null - A couple of fixes to make tests a bit more reliable when run in the browser
2.1.0
- Handles ESC key in link editor
- Standardizes usage of setTimeout for UX delays vs debouncing vs deferring
- Adds an optional onShowToolbar method
- Supports enabling/disabling checkSelection updates externally
- Standardizes where in the DOM a range begins
- Adds ARIA role information
- Fixes off() not removing any event listeners
- Misc minor bug fixes and improvements
2.0.0
- Adds static toolbar feature
- Now uses textContent instead of innerText
- Fixes plain text paste on IE
- Hides placeholder on mouse click
- Adds a 'collapse' option to 'selectElementContents' helper
- Allows toolbar button states to change when selection is collapsed
- In hideToolbarActions, calls an optional 'onHideToolbar' method
- Ensures that ul.id and anchor.id are unique
- Avoids grabbing selection on keypress for contenteditable except for spacebar
- Supports disabling anchorForm, avoiding unnecessary event handling and element creation
- Supports disabling placeholders, including not attaching event handlers when not needed
- Various minor bug fixes and improvements
1.9.13
- Adds a strikethrough option in buttonLabel
- Now uses
options.elementsContainer
to calculate ID - Removes events during deactivate
1.9.10
- Adds custom doc and win functionality, now you can specify the editor container
- Minor bugfixes
1.9.8
- Fixes 'this' out of scope