Skip to content

Commit

Permalink
Set default range for 'setAttribute' in PostEditor
Browse files Browse the repository at this point in the history
  • Loading branch information
YoranBrondsema authored and ZeeJab committed Sep 20, 2019
1 parent 2adb542 commit 53b36d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/editor/post.js
Original file line number Diff line number Diff line change
Expand Up @@ -812,7 +812,7 @@ class PostEditor {
this.setRange(nextRange);
}

setAttribute(key, value, range) {
setAttribute(key, value, range=this._range) {
range = toRange(range);
let { post } = this.editor;
let attribute = `data-md-${key}`;
Expand Down

0 comments on commit 53b36d7

Please sign in to comment.