I\'m attempting to check whether or not a contenteditable div has focus, but I\'m having some trouble. Here\'s my code so far:
if ($(\"#journal-content:focus\")
What about this?:
if (document.activeElement.isContentEditable) { ... }
I don't know how well browser support for this is but at least Chrome and Firefox support it.