Skip to content

Commit

Permalink
Strip incom markup before FEE runs isDirty() checks on comment mode…
Browse files Browse the repository at this point in the history
…ration links.

See 807f402.

See #42. See #71.
  • Loading branch information
boonebgorges committed Nov 15, 2015
1 parent 5fbd303 commit 8cdeb7f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions assets/js/changes.js
Original file line number Diff line number Diff line change
Expand Up @@ -1367,6 +1367,15 @@ jQuery(document).ready( function($) {

});

/**
* Hook into clicks on email moderation links.
*
* We want to make sure that FEE's isDirty() check is accurate.
*/
$( '.comment-actions a' ).on( 'click', function() {
SocialPaperChange.editor.strip_atts();
} );

// add keydown tracker code
$(document).on( 'keydown', function( event ) {

Expand Down

0 comments on commit 8cdeb7f

Please sign in to comment.