flont.js
// otherwise the text node the selection is part of
otherwise the text node the selection is part of
otherwise the text node the selection is part of
function nodeOrSpan(node) {
            if (node.parentNode.tagName === 'SPAN') {
                if (node.parentNode.textContent === node.textContent || node.parentNode.hasAttribute('data-letter')) {
                    return node.parentNode;
                }
            }
            return node;
        }
function nodeOrSpan ( node ) { if ( node . parentNode . tagName === 'SPAN' ) { if ( node . parentNode . textContent === node . textContent || node . parentNode . hasAttribute ( 'data-letter' ) ) { return node . parentNode ; } } return node ; }
otherwise the text node the selection is part of
otherwise the text node the selection is part of