Explorar o código

Docs: Improved Editor#ready's documentation.

Piotrek Koszuliński %!s(int64=8) %!d(string=hai) anos
pai
achega
d16b178e6a
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      packages/ckeditor5-core/src/editor/editor.js

+ 6 - 0
packages/ckeditor5-core/src/editor/editor.js

@@ -239,6 +239,12 @@ mix( Editor, ObservableMixin );
  * Fired when {@link #event:pluginsReady plugins}, {@link #event:uiReady UI} and {@link #event:dataReady data} and all additional
  * editor components are ready.
  *
+ * Note: This event is most useful for plugin developers. When integrating the editor with your website or
+ * application you do not have to listen to `editor#ready` because when the promise returned by the static
+ * {@link #create `Editor.create()`} event is resolved, the editor is already ready. In fact, since the first moment
+ * when the editor instance is available to you is inside `then()`'s callback, you cannot even add a listener to
+ * the `editor#ready` event.
+ *
  * @event ready
  */