Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Docs: Fixed comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
Reinmar committed Apr 16, 2019
1 parent 72c1948 commit f68917c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/utils.js
Expand Up @@ -355,11 +355,11 @@ function getFillerOffset() {
return null;
}

// Adds a drag handler to the editable element.
// Adds a drag handler to the widget.
//
// @param {module:engine/view/editableelement~EditableElement}
// @param {module:engine/view/containerelement~ContainerElement}
// @param {module:engine/view/downcastwriter~DowncastWriter} writer
function addSelectionHandler( editable, writer ) {
function addSelectionHandler( widgetElement, writer ) {
const selectionHandler = writer.createUIElement( 'div', { class: 'ck ck-widget__selection-handler' }, function( domDocument ) {
const domElement = this.toDomElement( domDocument );

Expand All @@ -376,6 +376,6 @@ function addSelectionHandler( editable, writer ) {
} );

// Append the selection handler into the widget wrapper.
writer.insert( writer.createPositionAt( editable, 0 ), selectionHandler );
writer.addClass( [ 'ck-widget_with-selection-handler' ], editable );
writer.insert( writer.createPositionAt( widgetElement, 0 ), selectionHandler );
writer.addClass( [ 'ck-widget_with-selection-handler' ], widgetElement );
}

0 comments on commit f68917c

Please sign in to comment.