Răsfoiți Sursa

Docs: Clarified that PendingActions need to be installed.

Piotrek Koszuliński 7 ani în urmă
părinte
comite
133e961e67
1 a modificat fișierele cu 8 adăugiri și 0 ștergeri
  1. 8 0
      docs/builds/guides/integration/saving-data.md

+ 8 - 0
docs/builds/guides/integration/saving-data.md

@@ -234,7 +234,15 @@ To handle the former situation you can listen to the native [`window#beforeunloa
 
 
 The example below shows how all these mechanisms can be used together to enable or disable a "Save" button and block the user from leaving the page without saving the data.
 The example below shows how all these mechanisms can be used together to enable or disable a "Save" button and block the user from leaving the page without saving the data.
 
 
+<info-box>
+	The {@link module:core/pendingactions~PendingActions} plugin is unavailable in any of the builds by default so you need to {@link builds/guides/integration/installing-plugins install it}.
+</info-box>
+
 ```js
 ```js
+// Note: We need to build the editor from source.
+// We cannot use existing builds in this case.
+import ClassicEditor from '@ckeditor/ckeditor5-editor-classic/src/classiceditor';
+
 import PendingActions from '@ckeditor/ckeditor5-core/src/pendingactions';
 import PendingActions from '@ckeditor/ckeditor5-core/src/pendingactions';
 
 
 let isDirty = false;
 let isDirty = false;