javascript - Rangy Modules Not Supported In Chrome? -
i trying use rangy in chrome, , seems serializer , wrappedselection modules not supported chrome. unsure if did not init() rangy properly, or if did other mistake. ran console.log(rangy.modules) how found out serializer , wrappedselection unsupported.
i have created empty chrome extention, , in manifest.js included 7 required rangy js files, , jquery.js. below contents of script.js:
function rangytest() { rangy.init(); console.log(rangy.modules); var value; $("body").append( "<input type=\"button\" id=\"serializebutton\" value=\"serialize selection\">" ); $("body").append( "<input type=\"button\" id=\"deserializebutton\" value=\"restore selection\">" ); $('#serializebutton').click(function() { value = rangy.serializeselection(); }); $('#deserializebutton').click(function() { rangy.deserializeselection(value); }); }
i think needs done using content scripts. see rangy - module 'wrappedselection' not supported
Comments
Post a Comment