8
0
Просмотр исходного кода

Docs: Clarified that PendingActions need to be installed.

Piotrek Koszuliński 7 лет назад
Родитель
Сommit
133e961e67
1 измененных файлов с 8 добавлено и 0 удалено
  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.
 
+<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
+// 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';
 
 let isDirty = false;