I've got a <p class="task-name" contenteditable> and i want to get the text from it when the user presses enter after doing some editing. I've got the event handled...
$(document).on('keypress', 'p.task-name', function(event) {
    if(event.which == 13) {
}
...but for some reason I can't figure out how to get the value of the entered text. I've tried using $(this).text and event.target, but i'm getting a lot of undefineds. I haven't had trouble with other events this way, so I must be missing something fundamental. What am I missing?
 
     
     
    