mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-24 10:30:13 +01:00
This commit is contained in:
parent
540fe7cfde
commit
45c53b7da6
1 changed files with 2 additions and 2 deletions
|
|
@ -21,7 +21,7 @@ import {renameAsset} from "../../../editor/rename";
|
|||
import * as dayjs from "dayjs";
|
||||
import {getColId} from "./col";
|
||||
import {getFieldIdByCellElement} from "./row";
|
||||
import {getCompressURL} from "../../../util/image";
|
||||
import {getCompressURL, removeCompressURL} from "../../../util/image";
|
||||
|
||||
export const bindAssetEvent = (options: {
|
||||
protyle: IProtyle,
|
||||
|
|
@ -197,7 +197,7 @@ export const editAssetItem = (options: {
|
|||
index: number,
|
||||
rect: DOMRect
|
||||
}) => {
|
||||
const linkAddress = options.content;
|
||||
const linkAddress = removeCompressURL(options.content);
|
||||
const type = options.type as "image" | "file";
|
||||
const menu = new Menu("av-asset-edit", () => {
|
||||
if ((!textElements[1] && textElements[0].value === linkAddress) ||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue