File tree 2 files changed +0
-22
lines changed 2 files changed +0
-22
lines changed Original file line number Diff line number Diff line change @@ -173,10 +173,6 @@ resets(arr)
173
173
.ql-align-right
174
174
text-align : right
175
175
176
- .ql-embed-selected
177
- border : 2px solid #7 7 7
178
- user-select : none
179
-
180
176
.ql-editor.ql-blank ::before
181
177
color : rgba (0 ,0 ,0 ,0.6 )
182
178
content : attr (data-placeholder )
Original file line number Diff line number Diff line change @@ -27,7 +27,6 @@ class Selection {
27
27
this . lastRange = this . savedRange = new Range ( 0 , 0 ) ;
28
28
this . handleComposition ( ) ;
29
29
this . handleDragging ( ) ;
30
- this . handleEmbedSelection ( ) ;
31
30
this . emitter . listenDOM ( 'selectionchange' , document , ( ) => {
32
31
if ( ! this . mouseDown ) {
33
32
setTimeout ( this . update . bind ( this , Emitter . sources . USER ) , 1 ) ;
@@ -85,23 +84,6 @@ class Selection {
85
84
} ) ;
86
85
}
87
86
88
- handleEmbedSelection ( ) {
89
- this . emitter . on ( Emitter . events . SELECTION_CHANGE , ( ) => {
90
- const selectedNode = document . querySelector ( '.ql-embed-selected' ) ;
91
- if ( selectedNode ) {
92
- selectedNode . classList . remove ( 'ql-embed-selected' ) ;
93
- }
94
- } ) ;
95
- this . root . addEventListener ( 'click' , ( e ) => {
96
- const blot = Parchment . find ( e . target , true ) ;
97
- if ( blot instanceof Parchment . Embed ) {
98
- const range = new Range ( blot . offset ( scroll ) , blot . length ( ) ) ;
99
- this . setRange ( range , Emitter . sources . USER ) ;
100
- blot . domNode . classList . add ( 'ql-embed-selected' ) ;
101
- }
102
- } ) ;
103
- }
104
-
105
87
focus ( ) {
106
88
if ( this . hasFocus ( ) ) return ;
107
89
this . root . focus ( ) ;
You can’t perform that action at this time.
0 commit comments