问题
I am trying to use Rangy in my Google Chrome extension, but I keep on receiving the error "Module 'WrappedSelection' not supported". This is a bare-bones extension so I have not implemented any code in this project other then Rangy.
Does anyone know if Rangy is compatible with a Google Chrome extension?
回答1:
I'm no expert in Google Chrome extensions but I don't believe there's any reason why Rangy couldn't be used in one. I believe it's done using content scripts. A project called Feltipen uses Rangy in a Chrome extension.
来源:https://stackoverflow.com/questions/9611955/rangy-module-wrappedselection-not-supported