How to paste the uploaded image? #8754
Replies: 1 comment 4 replies
-
你还是用中文描述一遍吧,从它域复制图片进blocksuite是可以的,因为有image-adpter |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
hello,
In BlockSuite, how do you paste and upload an image, not using the command to invoke the image block with a backslash?
class MockServerBlobSource implements BlobSource {
private readonly _cache = new Map<string, Blob>();
readonly = false;
constructor(readonly name: string) { }
async delete(key: string) {
console.log(
delete ${key}
);}
async get(key: string) {
if (this._cache.has(key)) {
return this._cache.get(key) as Blob;
}
}
async list() {
return Array.from(this._cache.keys());
}
async set(key: string, value: Blob) {
console.log(key, value);
}
}
I used this code, only implemented the
get
method, but did not use theset
method.Beta Was this translation helpful? Give feedback.
All reactions