Skip to content

Commit

Permalink
Inlined style.
Browse files Browse the repository at this point in the history
  • Loading branch information
engineering-this authored and Comandeer committed Jul 10, 2019
1 parent f664c7a commit 51b6df4
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions plugins/widget/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,6 @@
'.cke_widget_drag_handler_container:hover{' +
'opacity:1' +
'}' +
'.cke_widget_drag_handler_container_hidden{' +
// Initially drag handler should not be visible, until its position will be
// calculated (https://dev.ckeditor.com/ticket/11177).
// We need to hide unpositined handlers, so they don't extend
// widget's outline far to the left (https://dev.ckeditor.com/ticket/12024).
'display:none;' +
'}' +
'.cke_editable[contenteditable="false"] .cke_widget_drag_handler_container{' +
'display:none;' +
'}' +
Expand Down Expand Up @@ -1542,7 +1535,8 @@
top: newPos.y + 'px',
left: newPos.x + 'px'
} );
this.dragHandlerContainer.removeClass( '.cke_widget_drag_handler_container_hidden' );
this.dragHandlerContainer.removeStyle( 'display' );

editor.fire( 'unlockSnapshot' );
!initialDirty && editor.resetDirty();

Expand Down Expand Up @@ -3352,7 +3346,12 @@
container.setAttributes( {
'class': 'cke_reset cke_widget_drag_handler_container',
// Split background and background-image for IE8 which will break on rgba().
style: 'background:rgba(220,220,220,0.5);background-image:url(' + editor.plugins.widget.path + 'images/handle.png)'
// Initially drag handler should not be visible, until its position will be
// calculated (https://dev.ckeditor.com/ticket/11177).
// We need to hide unpositined handlers, so they don't extend
// widget's outline far to the left (https://dev.ckeditor.com/ticket/12024).
style: 'background:rgba(220,220,220,0.5);background-image:url(' + editor.plugins.widget.path + 'images/handle.png);' +
'display:none;'
} );

img = new CKEDITOR.dom.element( 'img', editor.document );
Expand Down

0 comments on commit 51b6df4

Please sign in to comment.