hans / obsidian-citation-plugin

Obsidian plugin which integrates your academic reference manager with the Obsidian editor. Search your references from within Obsidian and automatically create and reference literature notes for papers and books.
MIT License
1.12k stars 83 forks source link

Fix insertion of literature reference in canvas #239

Open ypislon opened 1 year ago

ypislon commented 1 year ago

Currently, it is not possible to add literature references or markdown citations to Obsidian canvas.

This fix enables editor access for canvas (as opposed to editor access for Markdown files only). It is a "quick and dirty" fix, as there is no convenient API for canvas (yet).

Excepted behavior:

Tested in Obsidian v1.3.5.

Should fix https://github.com/hans/obsidian-citation-plugin/issues/217.