only set active to false if it was false before opening the editor.
This commit is contained in:
+4
-1
@@ -227,6 +227,7 @@
|
||||
|
||||
function editBlock(blockObject, openSettings) {
|
||||
|
||||
var wasNotActiveBefore = blockObject.active !== true;
|
||||
blockObject.active = true;
|
||||
|
||||
if (inlineEditing === true && openSettings !== true) {
|
||||
@@ -267,7 +268,9 @@
|
||||
blockObject.retriveValuesFrom(blockContentClone, blockSettingsClone);
|
||||
}
|
||||
|
||||
blockObject.active = false;
|
||||
if (wasNotActiveBefore === true) {
|
||||
blockObject.active = false;
|
||||
}
|
||||
editorService.close();
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user