Skip to content

Commit

Permalink
fix drag and drop issue when multi instances are running
Browse files Browse the repository at this point in the history
  • Loading branch information
robertleeplummerjr committed Jan 16, 2016
1 parent 8132527 commit 2e7d818
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
6 changes: 4 additions & 2 deletions bower.json
Expand Up @@ -14,9 +14,11 @@
},
"dependencies": {
"rangy-official": ">=1.3",
"undo": "https://github.com/jzaefferer/undo/archive/master.zip",
"testify.js": ">=1.0"
"undo": "https://github.com/jzaefferer/undo/archive/master.zip"
},
"devDependencies": {
"testify.js": ">=1.0"
},
"keywords": ["editor", "wysiwyg", "contenteditable", "content", "medium", "medium.com"],
"license": "MIT",
"files": ["medium.js", "medium.css"]
Expand Down
2 changes: 1 addition & 1 deletion medium.js
Expand Up @@ -1580,7 +1580,7 @@ Medium.defaultSettings = {
cleanCanvas: function() {
var target,
inserted = false,
buttons = d.getElementsByClassName(this.buttonClass);
buttons = this.element.getElementsByClassName(this.buttonClass);

this.icon.style.opacity = 1;

Expand Down
4 changes: 1 addition & 3 deletions medium.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -14,7 +14,7 @@
"url": "https://github.com/jakiestfu/Medium.js"
},
"dependencies": {
"rangy": ">=1.3.0-alpha.20140827",
"rangy": ">=1.3.0",
"undo.js": ">=0.1.0"
},
"keywords": ["editor", "wysiwyg", "contenteditable", "content", "medium", "medium.com"],
Expand Down
2 changes: 1 addition & 1 deletion src/Medium/Drag.js
Expand Up @@ -158,7 +158,7 @@
cleanCanvas: function() {
var target,
inserted = false,
buttons = d.getElementsByClassName(this.buttonClass);
buttons = this.element.getElementsByClassName(this.buttonClass);

this.icon.style.opacity = 1;

Expand Down
2 changes: 1 addition & 1 deletion src/Medium/Injector.js
Expand Up @@ -45,7 +45,7 @@
}

while (html.length > 0) {
parent.insertBefore(html[html.length - 1], wedge);
parent.insertBefore(html[0], wedge);
}
} else {
nodes.push(html);
Expand Down

0 comments on commit 2e7d818

Please sign in to comment.