Skip to content

How to paste the uploaded image? #8754

Closed Answered by raintoway
xiaogonggong-w asked this question in Q&A
Discussion options

You must be logged in to vote

好的,我现在发现的问题在于,使用 shadows: [serverblobsource] 自定义服务器的代码,在上传使用斜杠命令调取的image可以成功上传,但是直接粘贴却不行(不会走里面的set方法,而是直接调用get)。
去掉自定义上传服务器的代码,粘贴才会在笔记当中展示

听起来你的情况是:添加了自定义上传服务器代码后,粘贴的图片不会显示在文档中。

  1. 你需要贴代码出来,要注释
  2. 初步判断:你在粘贴时有报错,你可以看一下控制台,并把错误信息贴出来

https://stackblitz.com/edit/github-4vu4dz-rajahq?file=src%2Feditor%2Feditor.ts 你可以试试这个 第63行代码是关键

项目控制台报错:

const blobSources = {
    main:serverblobsource,
    // shadows: [serverblobsource],
};

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@xiaogonggong-w
Comment options

@raintoway
Comment options

@xiaogonggong-w
Comment options

@raintoway
Comment options

Answer selected by xiaogonggong-w
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants