editor: multiwidget edit field undo/redo fix
This commit is contained in:
parent
69e2c2fc3e
commit
e0e8c558e6
1 changed files with 1 additions and 1 deletions
|
|
@ -93,8 +93,8 @@ module.exports = function editField(editor, widget, propName, defaultValue){
|
|||
for (var w of editor.selectedWidgets) {
|
||||
w.props[propName] = v !== '' ? v : JSON.parse(JSON.stringify(defaultValue))
|
||||
newWidgets.push(updateWidget(w, {preventSelect: editor.selectedWidgets.length > 1}))
|
||||
editor.pushHistory()
|
||||
}
|
||||
editor.pushHistory()
|
||||
if (newWidgets.length > 1) editor.select(newWidgets)
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue