Skip to content

Commit 4bafac0

Browse files
committed
Merge branch 't/10864' into major
2 parents 0ddd5f0 + 63dc037 commit 4bafac0

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

plugins/widget/plugin.js

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,6 @@
199199
// Create prototyped copy of original widget definition, so we won't modify it.
200200
widgetDef = CKEDITOR.tools.prototypedCopy( widgetDef );
201201
widgetDef.name = name;
202-
widgetDef.repository = this;
203-
widgetDef.definition = widgetDef;
204202

205203
widgetDef._ = widgetDef._ || {};
206204

@@ -756,6 +754,22 @@
756754
*/
757755
focusedEditable: null,
758756

757+
/**
758+
* The widget definition from which this instance was created.
759+
*
760+
* @readonly
761+
* @property {CKEDITOR.plugins.widget.definition} definition
762+
*/
763+
definition: widgetDef,
764+
765+
/**
766+
* Link to the widget repository which created this instance.
767+
*
768+
* @readonly
769+
* @property {CKEDITOR.plugins.widget.repository} repository
770+
*/
771+
repository: widgetsRepo,
772+
759773
// WAAARNING: Overwrite widgetDef's priv object, because otherwise violent unicorn's gonna visit you.
760774
_: {
761775
downcastFn: ( widgetDef.downcast && typeof widgetDef.downcast == 'string' ) ?
@@ -773,20 +787,6 @@
773787
* @property {Object} parts
774788
*/
775789

776-
/**
777-
* The widget definition from which this instance was created.
778-
*
779-
* @readonly
780-
* @property {CKEDITOR.plugins.widget.definition} definition
781-
*/
782-
783-
/**
784-
* Link to the widget repository which created this instance.
785-
*
786-
* @readonly
787-
* @property {CKEDITOR.plugins.widget.repository} repository
788-
*/
789-
790790
/**
791791
* The template which will be used to create a new widget element (when the widget's command is executed).
792792
* It will be populated with {@link #defaults default values}.

0 commit comments

Comments
 (0)