File tree Expand file tree Collapse file tree 2 files changed +0
-33
lines changed
app/code/Magento/PageBuilder/view/adminhtml/web Expand file tree Collapse file tree 2 files changed +0
-33
lines changed Original file line number Diff line number Diff line change @@ -127,8 +127,6 @@ export default class Wysiwyg implements WysiwygInterface {
127
127
* Called for the onFocus event
128
128
*/
129
129
private onFocus ( ) {
130
- this . clearSelection ( ) ;
131
-
132
130
this . getFixedToolbarContainer ( )
133
131
. addClass ( "pagebuilder-toolbar-active" ) ;
134
132
@@ -157,8 +155,6 @@ export default class Wysiwyg implements WysiwygInterface {
157
155
* Called for the onBlur events
158
156
*/
159
157
private onBlur ( ) {
160
- this . clearSelection ( ) ;
161
-
162
158
this . getFixedToolbarContainer ( )
163
159
. removeClass ( "pagebuilder-toolbar-active" )
164
160
. find ( ".mce-tinymce-inline" )
@@ -186,19 +182,6 @@ export default class Wysiwyg implements WysiwygInterface {
186
182
) ;
187
183
}
188
184
189
- /**
190
- * Clear any selections in the editable area
191
- */
192
- private clearSelection ( ) : void {
193
- if ( window . getSelection ) {
194
- if ( window . getSelection ( ) . empty ) {
195
- window . getSelection ( ) . empty ( ) ;
196
- } else if ( window . getSelection ( ) . removeAllRanges ) {
197
- window . getSelection ( ) . removeAllRanges ( ) ;
198
- }
199
- }
200
- }
201
-
202
185
/**
203
186
* Adjust padding on stage if in fullscreen mode to accommodate inline wysiwyg toolbar overflowing fixed viewport
204
187
*/
You can’t perform that action at this time.
0 commit comments