MCPcopy Create free account
hub / github.com/GrapesJS/react / slowStoragePlugin

Function slowStoragePlugin

packages/grapesjs-react-app-19/src/examples/common.ts:79–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77};
78
79export const slowStoragePlugin: Plugin = editor => {
80 editor.Storage.add('slow', {
81 async load() {
82 console.log('Waiting for the Storage');
83 await new Promise(res => setTimeout(res, 3000));
84 return {
85 pages: [{ component: '<h1>Content from the Storage</h1>' }]
86 };
87 },
88 async store() {}
89 });
90};
91
92export const defaultEditorProps: EditorProps = {
93 grapesjs: window.grapesjs,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected