Skip to content

Commit

Permalink
Updates dist files
Browse files Browse the repository at this point in the history
  • Loading branch information
Davi Ferreira committed Nov 24, 2014
1 parent b03d69b commit a47d088
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions dist/js/medium-editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,10 @@ else if (typeof define === 'function' && define.amd) {
return;
}
this.parentElements = ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'blockquote', 'pre'];
this.id = document.querySelectorAll('.medium-editor-toolbar').length + 1;
if (!this.options.elementsContainer) {
this.options.elementsContainer = document.body;
}
this.id = this.options.elementsContainer.querySelectorAll('.medium-editor-toolbar').length + 1;
return this.setup();
},

Expand Down Expand Up @@ -208,9 +211,6 @@ else if (typeof define === 'function' && define.amd) {
}
// Init toolbar
if (addToolbar) {
if (!this.options.elementsContainer) {
this.options.elementsContainer = document.body;
}
this.initToolbar()
.bindButtons()
.bindAnchorForm()
Expand Down
Loading

0 comments on commit a47d088

Please sign in to comment.