Преглед на файлове

Remove setting isEnabled state in WidgetToolbarRepository since it inherits isEnabled: true from Plugin

panr преди 5 години
родител
ревизия
d8335fb2e4
променени са 1 файла, в които са добавени 0 реда и са изтрити 17 реда
  1. 0 17
      packages/ckeditor5-widget/src/widgettoolbarrepository.js

+ 0 - 17
packages/ckeditor5-widget/src/widgettoolbarrepository.js

@@ -71,23 +71,6 @@ export default class WidgetToolbarRepository extends Plugin {
 		}
 
 		/**
-		 * Flag indicating whether a plugin is enabled or disabled.
-		 * A disabled plugin won't show any toolbar.
-		 *
-		 * Plugin can be simply disabled like that:
-		 *
-		 *		// Disable the plugin so that no toolbars are visible.
-		 *		editor.plugins.get( 'WidgetToolbarRepository' ).isEnabled = false;
-		 *
-		 * You can also use {@link #forceDisabled} method.
-		 *
-		 * @observable
-		 * @readonly
-		 * @member {Boolean} #isEnabled
-		 */
-		this.set( 'isEnabled', true );
-
-		/**
 		 * A map of toolbar definitions.
 		 *
 		 * @protected