Socket
Socket
Sign inDemoInstall

medium-editor

Package Overview
Dependencies
Maintainers
4
Versions
125
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

medium-editor - npm Package Compare versions

Comparing version 5.0.0-rc.1 to 5.0.0

UPGRADE-5.md

51

CHANGES.md

@@ -0,1 +1,52 @@

5.0.0 / 2015-06-18
==================
* All deprecated functions have been removed
* Keyboard Shorcuts are now part of an extension and not attached to specific button/commands
* Placeholders are now part of an extension with its own dedicated options
* Toolbar is now an extension with its own dedicated options
* firstHeader and secondHeader are gone you should use h1 thru h6
* Support pre-releases
* Buttons
* The array of buttons can now contain objects, for overriding any part of the button object
* This replaces the custom object value for the buttonLabels option
* API
* Unique id for MediumEditor instance will now remain unique (regardless of how many instances are created)
* .statics references are gone
* .trigger supports triggering events without needing to declare the event
* .callExtensions(), .setToolbarPosition(), and .hideToolbarDefaultActions() have been removed
* Extension
* .window & .document are now exposed as members of the Extension
* init no longer is passed MediumEditor instance as first argument
* CSS
* All classes are now `medium-editor` prefixed
* Util
* getProp, derives, getSelectionData, setObject & getObject are gone
* getSelectionRange & getSelectionStart are now in Selection
4.12.5 / 2015-06-16
==================
* Fix issue with restoring selection within nested block elements
4.12.4 / 2015-06-15
==================
* Ensure auto-link will never select an empty element (br, hr, input, etc.)
4.12.3 / 2015-06-12
==================
* Fix bug with un-linked auto-links causing unexpected cursor positioning
4.12.2 / 2015-06-10
==================
* Fix broken keyboard shortcuts
4.12.1 / 2015-06-02
==================
* Fix break with updateOnEmptySelection option for static toolbars
4.12.0 / 2015-06-01

@@ -2,0 +53,0 @@ ==================

2

package.json
{
"name": "medium-editor",
"version": "5.0.0-rc.1",
"version": "5.0.0",
"author": "Davi Ferreira <hi@daviferreira.com>",

@@ -5,0 +5,0 @@ "contributors": [

@@ -648,3 +648,2 @@ /*global Util, Selection, Extension,

}
break;
}

@@ -651,0 +650,0 @@

@@ -21,5 +21,5 @@ var FontSizeForm;

// Overrides ButtonExtension.handleClick
handleClick: function (evt) {
evt.preventDefault();
evt.stopPropagation();
handleClick: function (event) {
event.preventDefault();
event.stopPropagation();

@@ -26,0 +26,0 @@ if (!this.isDisplayed()) {

@@ -653,2 +653,3 @@ /*global NodeFilter, Selection*/

}
// We don't want to set the selection to an element that can't have children, this messes up Gecko.

@@ -655,0 +656,0 @@ element = this.traverseUp(element, function (el) {

@@ -20,3 +20,3 @@ /*global MediumEditor */

// grunt-bump looks for this:
'version': '5.0.0-rc.1'
'version': '5.0.0'
}).version);

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc