Proper handling of marked and hover classes for inline edit.