mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 14:42:32 -05:00
fix revisions
This commit is contained in:
1 parent
0f9fcf3fdc
commit
4bacaa26e1
2 files changed
+3
-3
No files matched your search
@@ -2240,8 +2240,8 @@ export default {
|
|||||||
},
|
},
|
||||||
onRevisionApply (revision) {
|
onRevisionApply (revision) {
|
||||||
this.beforeRevisionSnapshot = {
|
this.beforeRevisionSnapshot = {
|
||||||
template: JSON.parse(JSON.stringify(this.template)),
|
template: this.beforeRevisionSnapshot?.template || JSON.parse(JSON.stringify(this.template)),
|
||||||
dynamicDocuments: JSON.parse(JSON.stringify(this.dynamicDocuments)),
|
dynamicDocuments: this.beforeRevisionSnapshot?.dynamicDocuments || JSON.parse(JSON.stringify(this.dynamicDocuments)),
|
||||||
revision
|
revision
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -282,7 +282,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
reloadContent () {
|
reloadContent () {
|
||||||
this.editor.commands.setContent(this.section.innerHTML, { emitUpdate: false })
|
this.editor.commands.setContent(this.section.innerHTML, { emitUpdate: false, parseOptions: this.editor.options.parseOptions })
|
||||||
},
|
},
|
||||||
findAreaNodePos (areaUuid) {
|
findAreaNodePos (areaUuid) {
|
||||||
const el = this.editor.view.dom.querySelector(`[data-area-uuid="${areaUuid}"]`)
|
const el = this.editor.view.dom.querySelector(`[data-area-uuid="${areaUuid}"]`)
|
||||||
|
|||||||
Reference in new issue
Block a user