How to as user input from CustomJS script?

I’m struggling to find a way to show a prompt from a custom script. I know I have to use a base class Modal in my own plugins, but I can’t access it from a simple script. The standard browser prompt function is forbidden.

Is there a way I can ask for a simple text input from a CustomJS plugin script?

1 Like

You can access Modal via window.customJS.obsidian.Modal

1 Like