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

Method getProjectData

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

* Get the JSON project data, which could be stored and loaded back with `editor.loadProjectData(json)` * @returns {Object} * @example * console.log(editor.getProjectData()); * // { pages: [...], styles: [...], ... }

()

Source from the content-addressed store, hash-verified

552 * // { pages: [...], styles: [...], ... }
553 */
554 getProjectData() {
555 return this.em.storeData();
556 }
557
558 /**
559 * Load data from the JSON project

Callers 13

index.tsFile · 0.80
index.tsFile · 0.80
Symbols.tsFile · 0.80
serialization.tsFile · 0.80
storage.tsFile · 0.80
DataSource.tsFile · 0.80
storeMethod · 0.80
storeMethod · 0.80

Calls 1

storeDataMethod · 0.45

Tested by

no test coverage detected