|
|
@@ -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;
|