Skip to content

Commit

Permalink
fixes issue slab#681 with pasteHtml incorrectly re-hydrating tabs.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonnolen committed May 19, 2016
1 parent 5aa3022 commit 29714c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions formats/indent.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ class IdentAttributor extends Parchment.Attributor.Class {
this.remove(node);
return true;
} else {
return super.add(node, value);
return super.add(node, value.toString());
}
}
}

let IndentClass = new IdentAttributor('indent', 'ql-indent', {
scope: Parchment.Scope.BLOCK,
whitelist: [1, 2, 3, 4, 5, 6, 7, 8]
whitelist: ['1', '2', '3', '4', '5', '6', '7', '8']
});

export { IndentClass };

0 comments on commit 29714c4

Please sign in to comment.