saving on group/ungroup

master
Mark MacKay 2021-07-22 10:56:47 -05:00
parent 56b57cd0ec
commit 0f8c718756
1 changed files with 2 additions and 0 deletions

View File

@ -316,6 +316,7 @@ MD.Editor = function(){
if (_self.selected.length > 1) {
editor.menu.flash($('#object_menu'));
svgCanvas.groupSelectedElements();
saveCanvas();
}
};
@ -323,6 +324,7 @@ MD.Editor = function(){
if(_self.selected.length === 1 && _self.selected[0].tagName === "g"){
editor.menu.flash($('#object_menu'));
svgCanvas.ungroupSelectedElement();
saveCanvas();
}
}