Skip to content

Commit

Permalink
fix of #875
Browse files Browse the repository at this point in the history
  • Loading branch information
AJIXuMuK committed Apr 17, 2021
1 parent 3b8eb37 commit c4fd442
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/controls/richText/RichText.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -916,11 +916,13 @@ export class RichText extends React.Component<IRichTextProps, IRichTextState> {
const quill = this.getEditor();
if (quill) {
const range = quill.getSelection();
const formats = quill.getFormat(range);
if (range) {
const formats = quill.getFormat(range);

if (!isEqual(formats, this.state.formats)) {
console.log(`current format: ${formats.list}`);
newState.formats = formats;
if (!isEqual(formats, this.state.formats)) {
console.log(`current format: ${formats.list}`);
newState.formats = formats;
}
}

}
Expand Down

0 comments on commit c4fd442

Please sign in to comment.