8
0
Pārlūkot izejas kodu

API docs fixes.

Piotrek Koszuliński 9 gadi atpakaļ
vecāks
revīzija
6b3324c5f9

+ 8 - 8
packages/ckeditor5-core/src/editor/editor.js

@@ -190,34 +190,34 @@ export default class Editor {
 mix( Editor, EmitterMixin );
 
 /**
- * Fired after {@link core.editor.Editor#initPlugins plugins are initialized}.
+ * Fired after {@link #initPlugins plugins are initialized}.
  *
- * @event core.editor.Editor#pluginsReady
+ * @event pluginsReady
  */
 
 /**
  * Fired when the editor UI is ready. This event won't be fired if the editor has no UI.
  *
- * @event core.editor.Editor#uiReady
+ * @event uiReady
  */
 
 /**
  * Fired when the data loaded to the editor is ready. If a specific editor doesn't load
- * any data initially, this event will be fired right before {@link #ready}.
+ * any data initially, this event will be fired right before {@link #event:ready}.
  *
- * @event core.editor.Editor#dataReady
+ * @event dataReady
  */
 
 /**
- * Fired when {@link #pluginsReady plugins}, {@link #uiReady UI} and {@link #dataReady data} and all additional
+ * Fired when {@link #event:pluginsReady plugins}, {@link #event:uiReady UI} and {@link #event:dataReady data} and all additional
  * editor components are ready.
  *
- * @event core.editor.Editor#ready
+ * @event ready
  */
 
 /**
  * Fired when this editor instance is destroyed. The editor at this point is not usable and this event should be used to
  * perform the clean-up in any plugin.
  *
- * @event module:core/editor/editor~Editor#destroy
+ * @event destroy
  */

+ 3 - 3
packages/ckeditor5-core/src/plugin.js

@@ -20,13 +20,13 @@ export default class Plugin {
 	 * Creates a new Plugin instance. This is the first step of a plugin initialization.
 	 * See also {@link #init} and {@link #afterInit}.
 	 *
-	 * A plugin is always instantiated after its {@link #requires dependencies} and the
+	 * A plugin is always instantiated after its {@link module:core/plugin~Plugin.requires dependencies} and the
 	 * {@link #init} and {@link #afterInit} methods are called in the same order.
 	 *
 	 * Usually, you'll want to put your plugin's initialization code in the {@link #init} method.
 	 * The constructor can be understood as "before init" and used in special cases, just like
 	 * {@link #afterInit} servers for the special "after init" scenarios (e.g. code which depends on other
-	 * plugins, but which doesn't {@link #requires explicitly require} them).
+	 * plugins, but which doesn't {@link module:core/plugin~Plugin.requires explicitly require} them).
 	 *
 	 * @param {module:core/editor/editor~Editor} editor
 	 */
@@ -81,7 +81,7 @@ export default class Plugin {
 	 * The second stage (after plugin {@link #constructor}) of plugin initialization.
 	 * Unlike the plugin constructor this method can perform asynchronous.
 	 *
-	 * A plugin's `init()` method is called after its {@link #requires dependencies} are initialized,
+	 * A plugin's `init()` method is called after its {@link module:core/plugin~Plugin.requires dependencies} are initialized,
 	 * so in the same order as constructors of these plugins.
 	 *
 	 * @returns {null|Promise}