Skip to content

Commit 4c472fa

Browse files
committed
fix slab#1548
1 parent 21b0735 commit 4c472fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/quill.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ class Quill {
203203
return this.editor.getContents(index, length);
204204
}
205205

206-
getFormat(index = this.getSelection(), length = 0) {
206+
getFormat(index = this.getSelection(true), length = 0) {
207207
if (typeof index === 'number') {
208208
return this.editor.getFormat(index, length);
209209
} else {

0 commit comments

Comments
 (0)