Giter Club home page Giter Club logo

Comments (3)

Zuoqiu-Yingyi avatar Zuoqiu-Yingyi commented on May 25, 2024

@UFDXD

  1. 保存到本地设备出错貌似是因为 iframe 的问题, 请在浏览器中加载后保存到本地设备中(浏览器环境经过测试未出现问题)
  2. 读取我这里没有问题(iframe环境与浏览器环境均无问题), 是不是因为读取了步骤一中保存的文件(该文件音保存时出现异常, 为空文件)
  3. 文件保存的问题我是遵循D大的建议, 放在根目录的 assets 文件夹下

from widget-drawio.

UFDXD avatar UFDXD commented on May 25, 2024

@Zuoqiu-Yingyi

不反对D大的建议。
但是目前思源笔记,存在自建assets的特性,而使用自建assets的特性的人(比如我)就会习惯保持根目录assets为空,保证一个笔记下对应一个自建assets的模块独立性。若是挂件流程图资源全部定死放到根目录assets 这就会很难受,因为模块性的笔记独立性直接被打破了,多个笔记之间存在公用一个assets,会产生耦合。
(一个大杂烩的公用assets用起来爽,但是整理起来....)

from widget-drawio.

Zuoqiu-Yingyi avatar Zuoqiu-Yingyi commented on May 25, 2024

@UFDXD 但是不仅根目录与各笔记本根目录有 assets, 每一级文档根目录都可以设置 assets, 而且目前 API 无法查询块所在文档的上层哪一级存在 assets, 因此无法统一.

而且放在根目录的 assets 还有方便在文件系统中整理的考虑, 毕竟块属性 custom-data-assets 无法像超链接那样可以使用 Ctrl+click 从文件系统中定位文件.

不过可以在文件系统中手动移动资源文件, 移动后重建索引即可.

from widget-drawio.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.