src/plugins/common/block/lib/block-utils.js
/**
	 * Tests whether the given element is contained in an editable for
	 * which the block dragdrop feature is enabled.
	 *
	 * @param {!jQuery} $element
	 *        The element that may or may not be contained in an editable.
	 * @return {Boolean}
	 *        True, unless the given $element is contained in an
	 *        editable for which the dragdrop feature has been disabled.
	 */
Tests whether the given element is contained in an editable for
which the block dragdrop feature is enabled.

@param {!jQuery} $element
The element that may or may not be contained in an editable.
@return {Boolean}
True, unless the given $element is contained in an
editable for which the dragdrop feature has been disabled.
Tests whether the given element is contained in an editable for which the block dragdrop feature is enabled . @param { !jQuery } $element The element that may or may not be contained in an editable . @return { Boolean } True unless the given $element is contained in an editable for which the dragdrop feature has been disabled .
function isDragdropEnabledForElement($element) {
		var $editable = $element.closest('.aloha-editable');
		if ($editable.length) {
			return !!$editable.data('block-dragdrop');
		}
		return true;
	}
function isDragdropEnabledForElement ( $element ) { var $editable = $element . closest ( '.aloha-editable' ) ; if ( $editable . length ) { return ! ! $editable . data ( 'block-dragdrop' ) ; } return true ; }
Tests whether the given element is contained in an editable for
 which the block dragdrop feature is enabled.
Tests whether the given element is contained in an editable for which the block dragdrop feature is enabled .
// no editable specified, let's make drag & drop enabled by default.