JavaScript for WordPress Forums Vanilla JavaScript vanillapress 1.6.17 on firefox Reply To: vanillapress 1.6.17 on firefox

Zac Gordon

This should work:

editor.updateContent = function( event ) {

  model.updateContent( editor.currentContent );


Some folks like to do this:

editor.updateContent = function( e ) {

  model.updateContent( editor.currentContent );


I will go back when I have some time and update some of the early event stuff to talk more about cross browser support and reasons for this.