Skip to content

Commit

Permalink
Fixes michaelpapworth#21, remember the value that was updated during …
Browse files Browse the repository at this point in the history
…TinyMCE init
  • Loading branch information
igormukhin committed Nov 18, 2015
1 parent 3a06ddc commit 1dccb33
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/wysiwyg.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@
tinymce.setContent( value );
tinymce.execCommand( 'keyup' );
}
} else {
// We need to remember the value that was updated during TinyMCE initialization,
// otherwise TinyMCE will show up with the old value
$( element ).val( value );
}
}

Expand Down

0 comments on commit 1dccb33

Please sign in to comment.