File tree Expand file tree Collapse file tree 1 file changed +16
-16
lines changed Expand file tree Collapse file tree 1 file changed +16
-16
lines changed Original file line number Diff line number Diff line change 199
199
// Create prototyped copy of original widget definition, so we won't modify it.
200
200
widgetDef = CKEDITOR . tools . prototypedCopy ( widgetDef ) ;
201
201
widgetDef . name = name ;
202
- widgetDef . repository = this ;
203
- widgetDef . definition = widgetDef ;
204
202
205
203
widgetDef . _ = widgetDef . _ || { } ;
206
204
756
754
*/
757
755
focusedEditable : null ,
758
756
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
+
759
773
// WAAARNING: Overwrite widgetDef's priv object, because otherwise violent unicorn's gonna visit you.
760
774
_ : {
761
775
downcastFn : ( widgetDef . downcast && typeof widgetDef . downcast == 'string' ) ?
773
787
* @property {Object } parts
774
788
*/
775
789
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
-
790
790
/**
791
791
* The template which will be used to create a new widget element (when the widget's command is executed).
792
792
* It will be populated with {@link #defaults default values}.
You can’t perform that action at this time.
0 commit comments