v0.1.1 — Fix plugin load failure
Fix
- Plugin load failed with "TypeError: h is not a constructor" on startup
- Cause:
workspace.on('editor-paste', ...)andworkspace.on('editor-drop', ...)are not valid Obsidian events (those are VSCode-style). The workspace falls through to a code path that requires a constructor we don't have. - Fix: switch to
registerDomEvent(document, 'paste' | 'drop', cb, true)withuseCapture=trueso we run before Obsidian's default handler. We bail when the target is outside a CodeMirror editor (.cm-content/.CodeMirror), so global paste for the search box and settings dialog is untouched.
Install
Same as v0.1.0 — drop main.js, manifest.json, styles.css from the release assets into your vault's .obsidian/plugins/picfast-image-uploader/. No settings migration needed (version bumped in manifest).