mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-02 21:51:49 +01:00
🚨
This commit is contained in:
parent
274d5c7562
commit
6b918c82a9
3 changed files with 3 additions and 3 deletions
|
|
@ -1126,7 +1126,7 @@ export const imgMenu = (protyle: IProtyle, range: Range, assetElement: HTMLEleme
|
|||
imgElement.setAttribute("src", value);
|
||||
imgElement.setAttribute("data-src", value);
|
||||
const imgNetElement = assetElement.querySelector(".img__net");
|
||||
if (value.startsWith("assets/")) {
|
||||
if (value.startsWith("assets/") || value.startsWith("data:image/")) {
|
||||
if (imgNetElement) {
|
||||
imgNetElement.remove();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -628,7 +628,7 @@ export const keydown = (protyle: IProtyle, editorElement: HTMLElement) => {
|
|||
const tdElement = hasClosestByTag(range.startContainer, "TD") || hasClosestByTag(range.startContainer, "TH");
|
||||
let tdStatus;
|
||||
if (tdElement) {
|
||||
const cells = nodeElement.querySelectorAll('td, th');
|
||||
const cells = nodeElement.querySelectorAll("td, th");
|
||||
if (cells[cells.length - 1] === tdElement) {
|
||||
tdStatus = "last";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ export const fetchPost = (
|
|||
data?: any,
|
||||
cb?: (response: IWebSocketData) => void,
|
||||
headers?: IObject,
|
||||
failCallback?: (response: IWebSocketData) => void,) => {
|
||||
failCallback?: (response: IWebSocketData) => void) => {
|
||||
const init: RequestInit = {
|
||||
method: "POST",
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue