🚀. Socket Launch Week Day 3:Socket Firewall Now Blocks Malicious VS Code and Open VSX Extensions.Learn more
Sign In

@wakeadmin/drawio-load-plugin

Package Overview
Dependencies
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wakeadmin/drawio-load-plugin

惟客 drawio 加载插件

latest
npmnpm
Version
0.1.5
Version published
Maintainers
2
Created
Source

本地开发

pnpm serve

配置 host 为:

127.0.0.1 dev.pusher.com

打开 draw.io

添加插件

https://dev.pusher.com/index.js

drawio 相关代码位置

drawio 有 CSP 限制,只能加载指定域下的插件

openInSameWin

插件弹窗需要隐藏

文件加载 App.prototype.loadFile 方法

#Uhttps%3A%2F%2Fdev.pusher.com%2Fdemo.xml ?title=标题

文件保存 App.prototype.saveFile/save LocalFile File* 类 save 方法 /** * */ DesktopLibrary.prototype.save = function(revision, success, error) { LocalFile.prototype.saveFile.apply(this, arguments); };

模板导入 EditorUi.prototype.importFiles

FAQs

Package last updated on 16 Aug 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts