Browse Source

Introduced the Plugin module to be able to workaround its conflict with the RequireJS "plugin!" plugin.

fredck 11 years ago
parent
commit
cfba23f7ca
1 changed files with 20 additions and 0 deletions
  1. 20 0
      packages/ckeditor5-engine/src/plugin.js

+ 20 - 0
packages/ckeditor5-engine/src/plugin.js

@@ -0,0 +1,20 @@
+/**
+ * @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
+ * For licensing, see LICENSE.md.
+ */
+
+'use strict';
+
+/**
+ * The base class for CKEditor plugin classes.
+ *
+ * @class Plugin
+ */
+
+CKEDITOR.define( function() {
+	function Plugin( editor ) {
+		this.editor = editor;
+	}
+
+	return Plugin;
+} );