Skip to content

Releases: yabwe/medium-editor

2.4.0

15 Feb 19:48
Compare
Choose a tag to compare
  • 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

11 Feb 16:53
Compare
Choose a tag to compare
  • 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

05 Feb 22:37
Compare
Choose a tag to compare
  • 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

31 Jan 20:22
Compare
Choose a tag to compare
  • Fix issue with multiple elements with the same class on the same editor instance

2.1.2

30 Jan 22:02
Compare
Choose a tag to compare

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

27 Jan 21:51
Compare
Choose a tag to compare
  • 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

06 Jan 19:44
Compare
Choose a tag to compare
  • 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

24 Nov 19:19
Compare
Choose a tag to compare
  • Adds a strikethrough option in buttonLabel
  • Now uses options.elementsContainer to calculate ID
  • Removes events during deactivate

1.9.10

17 Nov 12:57
Compare
Choose a tag to compare
  • Adds custom doc and win functionality, now you can specify the editor container
  • Minor bugfixes

1.9.8

21 Oct 14:06
Compare
Choose a tag to compare
  • Fixes 'this' out of scope