File tree 2 files changed +3
-2
lines changed 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -231,7 +231,7 @@ class Quill {
231
231
this . theme . addModule ( 'uiNode' ) ;
232
232
this . theme . init ( ) ;
233
233
this . emitter . on ( Emitter . events . EDITOR_CHANGE , ( type ) => {
234
- if ( type === Emitter . events . TEXT_CHANGE ) {
234
+ if ( [ Emitter . events . TEXT_CHANGE , Emitter . events . COMPOSITION_START ] . includes ( type ) ) {
235
235
this . root . classList . toggle ( 'ql-blank' , this . editor . isBlank ( ) ) ;
236
236
}
237
237
} ) ;
Original file line number Diff line number Diff line change @@ -170,9 +170,9 @@ class Clipboard extends Module<ClipboardOptions> {
170
170
171
171
onCaptureCopy ( e : ClipboardEvent , isCut = false ) {
172
172
if ( e . defaultPrevented ) return ;
173
- e . preventDefault ( ) ;
174
173
const [ range ] = this . quill . selection . getRange ( ) ;
175
174
if ( range == null ) return ;
175
+ e . preventDefault ( ) ;
176
176
const { html, text } = this . onCopy ( range , isCut ) ;
177
177
e . clipboardData ?. setData ( 'text/plain' , text ) ;
178
178
e . clipboardData ?. setData ( 'text/html' , html ) ;
@@ -350,6 +350,7 @@ function isLine(node: Node, scroll: ScrollBlot) {
350
350
'table' ,
351
351
'td' ,
352
352
'tr' ,
353
+ 'th' ,
353
354
'ul' ,
354
355
'video' ,
355
356
] . includes ( node . tagName . toLowerCase ( ) ) ;
You can’t perform that action at this time.
0 commit comments