public/ckeditor/4.4dev/plugins/language/plugin.js
function( editor ) {
			var elementPath = editor.elementPath(),
				activePath = elementPath && elementPath.elements,
				pathMember, ret;

			// IE8: upon initialization if there is no path elementPath() returns null.
			if ( elementPath ) {
				for ( var i = 0; i < activePath.length; i++ ) {
					pathMember = activePath[ i ];

					if ( !ret && pathMember.getName() == 'span' && pathMember.hasAttribute( 'dir' ) && pathMember.hasAttribute( 'lang' ) )
						ret = pathMember;
				}
			}

			return ret;
		}
function( editor ) {
			var elementPath = editor.elementPath(),
				activePath = elementPath && elementPath.elements,
				pathMember, ret;

			// IE8: upon initialization if there is no path elementPath() returns null.
			if ( elementPath ) {
				for ( var i = 0; i < activePath.length; i++ ) {
					pathMember = activePath[ i ];

					if ( !ret && pathMember.getName() == 'span' && pathMember.hasAttribute( 'dir' ) && pathMember.hasAttribute( 'lang' ) )
						ret = pathMember;
				}
			}

			return ret;
		}
function ( editor ) { var elementPath = editor . elementPath ( ) , activePath = elementPath && elementPath . elements , pathMember , ret ; // IE8: upon initialization if there is no path elementPath() returns null.
 if ( elementPath ) { for ( var i = 0 ; i < activePath . length ; i ++ ) { pathMember = activePath [ i ] ; if ( ! ret && pathMember . getName ( ) == 'span' && pathMember . hasAttribute ( 'dir' ) && pathMember . hasAttribute ( 'lang' ) ) ret = pathMember ; } } return ret ; }
Gets the first language element for the current editor selection. @param {CKEDITOR.editor} editor @returns {CKEDITOR.dom.element} The language element, if any.
Gets the first language element for the current editor selection .