()
| 935 | } |
| 936 | |
| 937 | storeData(): ProjectData { |
| 938 | let result = {}; |
| 939 | // Sync content if there is an active RTE |
| 940 | const editingCmp = this.getEditing(); |
| 941 | editingCmp && editingCmp.trigger('sync:content', { noCount: true }); |
| 942 | |
| 943 | this.storables.forEach((m) => { |
| 944 | result = { ...result, ...m.store(1) }; |
| 945 | }); |
| 946 | const project = JSON.parse(JSON.stringify(result)); |
| 947 | this.trigger(EditorEvents.projectGet, { project }); |
| 948 | return project; |
| 949 | } |
| 950 | |
| 951 | loadData(project: ProjectData = {}, options: EditorLoadOptions = {}): ProjectData { |
| 952 | const evData = { project, options, initial: !!options.initial }; |
no test coverage detected