First of all, I’ve never actually tied it so I cannot say for sure it’s going to work.
Second, I guess you can use it in a Custom Element file (where you can access the DOM). And only if the site is under your own domain and not under wixsite.com/editorx.com.