siyuan-note / siyuan

A privacy-first, self-hosted, fully open source personal knowledge management software, written in typescript and golang.
https://b3log.org/siyuan
GNU Affero General Public License v3.0
21.85k stars 1.56k forks source link

批量插入图片问题 #208

Closed wfan14513 closed 4 years ago

wfan14513 commented 4 years ago

批量上传文件,只有第一张图片上传成功,但是所有图片都被拉到assets文件夹了。

Vanessa219 commented 4 years ago

目前只能上传到本地,后期会开启图床功能。

Vanessa219 commented 4 years ago

@88250 SpinVditorIRBlockDOM 方法调用后图片会被你吃掉。

SpinVditorIRBlockDOM - argument: <p data-block="0" data-node-id="20201011095041-9p8gpo4" data-type="p">![1.png](assets/20201011095049-i915cmg-1.png)
![2.png](assets/20201011095049-1pnl8na-2.png)<wbr>
</p>
log.ts:7 SpinVditorIRBlockDOM - result: <p data-block="0" data-node-id="20201011095041-9p8gpo4" data-type="p"><span class="vditor-ir__node" data-type="img"><span class="vditor-ir__marker">!</span><span class="vditor-ir__marker vditor-ir__marker--bracket">[</span><span class="vditor-ir__marker vditor-ir__marker--bracket">1.png</span><span class="vditor-ir__marker vditor-ir__marker--bracket">]</span><span class="vditor-ir__marker vditor-ir__marker--paren">(</span><span class="vditor-ir__marker vditor-ir__marker--link">assets/20201011095049-i915cmg-1.png</span><span class="vditor-ir__marker vditor-ir__marker--paren">)</span><img src="/siyuan/1353745196544/MiniProjects/assets/20201011095049-i915cmg-1.png" alt="1.png" /></span></p>