修复图片上传断网后重传不显示HTML标签
This commit is contained in:
parent
15d33fd759
commit
4755543d0e
@ -634,11 +634,12 @@ markdown 基本语法教程 空格与换行 markdown 语法对于空格与换行
|
||||
} catch (error) {
|
||||
console.error("图片上传失败:", error);
|
||||
alert("图片上传失败!");
|
||||
event.target.value = '';
|
||||
}
|
||||
}
|
||||
|
||||
// 复制HTML标签到剪贴板
|
||||
function copyImageUrl() {
|
||||
// 复制HTML标签到剪贴板
|
||||
function copyImageUrl() {
|
||||
const imageTag = document.getElementById("imageUrl").innerText;
|
||||
// 创建一个临时文本区域元素
|
||||
const textArea = document.createElement("textarea");
|
||||
@ -655,7 +656,7 @@ function copyImageUrl() {
|
||||
}
|
||||
|
||||
document.body.removeChild(textArea);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user