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

Popular posts from this blog

jasper reports - Fixed header in Excel using JasperReports -

media player - Android: mediaplayer went away with unhandled events -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -