mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 06: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) {
|
||||
this.beforeRevisionSnapshot = {
|
||||
template: JSON.parse(JSON.stringify(this.template)),
|
||||
dynamicDocuments: JSON.parse(JSON.stringify(this.dynamicDocuments)),
|
||||
template: this.beforeRevisionSnapshot?.template || JSON.parse(JSON.stringify(this.template)),
|
||||
dynamicDocuments: this.beforeRevisionSnapshot?.dynamicDocuments || JSON.parse(JSON.stringify(this.dynamicDocuments)),
|
||||
revision
|
||||
}
|
||||
|
||||
|
||||
@@ -282,7 +282,7 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
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) {
|
||||
const el = this.editor.view.dom.querySelector(`[data-area-uuid="${areaUuid}"]`)
|
||||
|
||||
Reference in new issue
Block a user