Ah ha!!! I didn’t think of that one. To be honest I didn’t even know you could do that!!!
Here’s a screenshot in English in case anyone needs that.
The detail here is that @Angelo “attached” the Safari developer debugger to all of the webview contexts that appear anywhere on his machine. Since RapidWeaver and Safari use the same underlying technology Safari is able to “remote debug” RapidWeaver preview windows. That’s neat – but probably pretty annoying.
I leave on your consideration if is possible that may have some link between the flag of “Safari Web Inspector” in RW Stacks Preferences and the flag into Safari Menu.
So, first – as you noted before – this was happening even on Styled Text pages. Safari is attaching to the RW Preview pane – not any part of Stacks. So it’s outside my area of influence. You’d have to try to get RW to make some change.
Currently Stacks does not allow Javascript in any of its webviews – so this will never attach to Stacks Edit mode, for instance.
But even asking RapidWeaver might be futile – I’m not sure it’s possible to block this feature. It seems like the whole point of this feature of Safari is to be able to debug every single JS context everywhere on the whole device (it works on iPhones too – which is, I think what most people use it for).
If you don’t want to do that, I think simply using the regular developer tools window (by Right clicking and choosing “Inspect”) is the way to go.