Skip to content

Commit

Permalink
Merge pull request #75 from cpsubrian/patch-2
Browse files Browse the repository at this point in the history
Fixes destruction of placeholder
  • Loading branch information
robertleeplummerjr committed Aug 7, 2014
2 parents 638b5de + 294ee5d commit a5a200a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion medium.js
Original file line number Diff line number Diff line change
Expand Up @@ -594,9 +594,10 @@ var Medium = (function (w, d) {
settings = this.settings,
placeholder = this.placeholder || null;

if (placeholder !== null) {
if (placeholder !== null && placeholder.setup) {
//remove placeholder
placeholder.parentNode.removeChild(placeholder);
delete el.placeHolderActive;
}

//remove contenteditable
Expand Down

0 comments on commit a5a200a

Please sign in to comment.