Hi atrol
Thank you for your answer and your hint. With these two files alone, I didn't understand how it worked. It wasn't until I also included html_api.php that I realized how it works, I think. If I understand correctly, a JS script is included, which was generated by PHP. But in that case I would have inline JS again which is blocked by CSP, or not?
Regardless of that, I've also found 2 other solutions in the meantime:
1. I hadn't thought of this solution at first, but I used to work with it a lot with Perl: Passing variables in the query string to JS. But that is quite cumbersome, at least in the JS script which has to evaluate the parameters. "A lot" of code is necessary.
2. I like the second solution, on the other hand, very much and my plug-in now also works with it: Define the desired variables with "data-" directly in the script call and then read them out in the JS script via jQuery. It works very well and requires minimal code for it.
Nevertheless, thank you for your information. The more alternatives you know, the better.
