|
@@ -13,3 +13,14 @@ function removeImgData(blockArray, blockIndex, dataIndex, contentUrl) {
|
|
axios.delete(`${PORTAL_SERVER}delete/img?url=${contentUrl}&filename=${filename}`)
|
|
axios.delete(`${PORTAL_SERVER}delete/img?url=${contentUrl}&filename=${filename}`)
|
|
return blockArray;
|
|
return blockArray;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+function removeDescElement(p, textArea, inputButton, removeButton) {
|
|
|
|
+ p.remove();
|
|
|
|
+ textArea.remove();
|
|
|
|
+ inputButton.remove();
|
|
|
|
+ removeButton.remove();
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+function removeDescData(blockArray, blockIndex, dataIndex) {
|
|
|
|
+ blockArray[blockIndex].data.splice(dataIndex, 1);
|
|
|
|
+}
|