aloha_src/static/js/plugins/common/block/lib/block-utils.js
/**
	 * Pads the given block element with landing areas at the beginning and end
	 * of the block. This allows the editor to place the caret next to an inline
	 * block elements.
	 *
	 * @param {jQuery<DOMElement>} $block
	 */
Pads the given block element with landing areas at the beginning and end
of the block. This allows the editor to place the caret next to an inline
block elements.

@param {jQuery} $block
Pads the given block element with landing areas at the beginning and end of the block . This allows the editor to place the caret next to an inline block elements . @param { jQuery } $block
function pad($block) {
		var previous = Dom.findBackward(
			Dom.backward($block[0]),
			isVisibleNode,
			function (node) {
				return Html.isBlock(node) || DomLegacy.isEditingHost(node);
			}
		);
		if (!previous) {
			$block.before(createLandingElement($block));
		}
		var next = Dom.findForward(
			skipNodeForward($block[0]),
			isVisibleNode,
			function (node) {
				return Html.isBlock(node) || DomLegacy.isEditingHost(node) || (
					node.previousSibling &&
					DomLegacy.isEditingHost(node.previousSibling)
				);
			}
		);
		if (!next) {
			$block.after(createLandingElement($block));
		}
	}
function pad ( $block ) { var previous = Dom . findBackward ( Dom . backward ( $block [ 0 ] ) , isVisibleNode , function ( node ) { return Html . isBlock ( node ) || DomLegacy . isEditingHost ( node ) ; } ) ; if ( ! previous ) { $block . before ( createLandingElement ( $block ) ) ; } var next = Dom . findForward ( skipNodeForward ( $block [ 0 ] ) , isVisibleNode , function ( node ) { return Html . isBlock ( node ) || DomLegacy . isEditingHost ( node ) || ( node . previousSibling && DomLegacy . isEditingHost ( node . previousSibling ) ) ; } ) ; if ( ! next ) { $block . after ( createLandingElement ( $block ) ) ; } }
Pads the given block element with landing areas at the beginning and end
 of the block.
Pads the given block element with landing areas at the beginning and end of the block .