mProjectsCode / obsidian-js-engine-plugin

https://www.moritzjung.dev/obsidian-js-engine-plugin-docs/
GNU General Public License v3.0
73 stars 5 forks source link

FR: expose obsidian module apis #6

Closed mariomui closed 8 months ago

mariomui commented 9 months ago

As a user I want to be able to use all of obsidian components such as Notice and ButtonComponent.

mProjectsCode commented 9 months ago

I haven't found a good way to do this. The last time i tried i caused obsidian to crash xD

mariomui commented 9 months ago

I’ve seen templater do it. With your permission I can start work on it. It’s in current_functions_object in their codebase. Rather than initializing it on markdownprocessor block you initialize it on onload and stuff the module into one of your plugin objects.

mProjectsCode commented 9 months ago

Feel free to make a PR for it. It's probably best if you pass the obsidian module into here with the name obsidian.

mProjectsCode commented 9 months ago

Have you made any progress on this @mariomui?

mariomui commented 9 months ago

Not yet. You can take the ticket if you want.

mProjectsCode commented 8 months ago

Did that, will be part of the next release, alongside new docs.