mProjectsCode / obsidian-meta-bind-plugin

A plugin for Obsidian to make your notes interactive with inline input fields, metadata displays, and buttons.
https://www.moritzjung.dev/obsidian-meta-bind-plugin-docs/
GNU General Public License v3.0
473 stars 38 forks source link

Warn if `JS input fields` isn't enabled but `meta-bind-js-view` is being used. #334

Closed RayBB closed 4 months ago

RayBB commented 4 months ago

Is your Feature Request Related to a Problem?

Follow up to my silly problem here: https://github.com/mProjectsCode/obsidian-meta-bind-plugin/issues/332

Describe the Feature you'd Like

Right now even if JS Input Fields isn't enabled, we still get the correct syntax highlighting for meta-bind-js-view blocks. However, they'll just always return a blank area. It would be nice if we could show some type of warning that the settings needs to be enabled for this to work.

Additional Context

Opened a PR in the docs here to make things a bit clearer: https://github.com/mProjectsCode/obsidian-meta-bind-plugin-docs/pull/9

mProjectsCode commented 4 months ago

It did show an error at some point. Seems like I broke it somehow.