Update editor.js
Update editor.js

-Add to the openQuery function a line to send an 'change' event when the 'editor' is updated. This allows the syntax highlighter to listen for change events and update. Otherwise the ability to open a query is broken when using the syntax highlighter.
-Add a function replaceEditor which removes the 'editor' from view and provides a syntax-highlighted version to the user. Sets up required event listeners so that the contents of both are synchronised.
JensErat/basex,deshmnnit04/basex,ksclarke/basex,JensErat/basex,vincentml/basex,dimitarp/basex,deshmnnit04/basex,vincentml/basex,joansmith/basex,joansmith/basex,drmacro/basex,ksclarke/basex,joansmith/basex,ksclarke/basex,joansmith/basex,vincentml/basex,deshmnnit04/basex,vincentml/basex,vincentml/basex,joansmith/basex,JensErat/basex,ksclarke/basex,dimitarp/basex,vincentml/basex,BaseXdb/basex,BaseXdb/basex,ksclarke/basex,BaseXdb/basex,drmacro/basex,BaseXdb/basex,vincentml/basex,deshmnnit04/basex,JensErat/basex,drmacro/basex,drmacro/basex,vincentml/basex,dimitarp/basex,joansmith/basex,dimitarp/basex,deshmnnit04/basex,vincentml/basex,drmacro/basex,BaseXdb/basex,drmacro/basex,BaseXdb/basex,BaseXdb/basex,BaseXdb/basex,ksclarke/basex,JensErat/basex,deshmnnit04/basex,JensErat/basex,ksclarke/basex,ksclarke/basex,ksclarke/basex,vincentml/basex,drmacro/basex,BaseXdb/basex,drmacro/basex,deshmnnit04/basex,dimitarp/basex,dimitarp/basex,BaseXdb/basex,dimitarp/basex,deshmnnit04/basex,deshmnnit04/basex,ksclarke/basex,vincentml/basex,deshmnnit04/basex,joansmith/basex,BaseXdb/basex,ksclarke/basex,dimitarp/basex,JensErat/basex,dimitarp/basex,joansmith/basex,BaseXdb/basex,joansmith/basex,JensErat/basex,joansmith/basex,JensErat/basex,dimitarp/basex,JensErat/basex,drmacro/basex,drmacro/basex,dimitarp/basex,deshmnnit04/basex,JensErat/basex,vincentml/basex,joansmith/basex,joansmith/basex,ksclarke/basex,JensErat/basex,drmacro/basex,dimitarp/basex,deshmnnit04/basex,drmacro/basex