MCPcopy
hub / github.com/GrapesJS/grapesjs / store

Method store

packages/core/src/editor/index.ts:530–532  ·  view source on GitHub ↗

* Store data to the current storage. * This will reset the counter of changes (`editor.getDirtyCount()`). * @param {Object} [options] Storage options. * @returns {Object} Stored data. * @example * const storedData = await editor.store();

(options?: T)

Source from the content-addressed store, hash-verified

528 * const storedData = await editor.store();
529 */
530 async store<T extends StorageOptions>(options?: T) {
531 return await this.em.store(options);
532 }
533
534 /**
535 * Load data from the current storage.

Callers

nothing calls this directly

Calls 1

storeMethod · 0.65

Tested by

no test coverage detected