}elseif(["line","pen","rect","circle","eraser","addImgBG","recSelect","eraseRec","addTextBox","setTextboxText","removeTextbox","setTextboxPosition","setTextboxFontSize","setTextboxFontColor"].includes(tool)){//Save all this actions
if(!savedBoards[wid]){
savedBoards[wid]=[];
}
deletecontent["wid"];//Delete id from content so we don't store it twice
if(tool==="setTextboxText"){
for(vari=savedBoards[wid].length-1;i>=0;i--){//Remove old textbox tex -> dont store it twice