监听contenteditable
$('div').on('focusout', function () {
console.log('focus out')
});
$('div').on('focusin', function () {
console.log('focus in')
});
<div contenteditable="true">
</div>