Skip to content
This repository has been archived by the owner on Sep 11, 2020. It is now read-only.

Commit

Permalink
Merge pull request #199 from j0k3r/fix-hideButtons
Browse files Browse the repository at this point in the history
hideButtons is intern to the plugin
  • Loading branch information
linkesch committed Jun 11, 2015
2 parents fb90ca4 + bd0edea commit fd271a6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/js/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
this.options.editor._serialize = this.options.editor.serialize;
this.options.editor._destroy = this.options.editor.destroy;
this.options.editor._setup = this.options.editor.setup;
this.options.editor._hideInsertButtons = this.hideButtons;

this.options.editor.serialize = this.editorSerialize;
this.options.editor.destroy = this.editorDestroy;
Expand Down Expand Up @@ -186,7 +187,7 @@

if (!(el.querySelector('img, blockquote')) && cloneHtml === '') {
this.showPlaceholder(el);
this.hideButtons();
this.base._hideInsertButtons($(el));
} else {
this.hidePlaceholder(el);
}
Expand Down

0 comments on commit fd271a6

Please sign in to comment.