static/tinymce/tiny_mce_src.js
function removeCaretContainer(node, move_caret) {
				var child, rng;

				if (!node) {
					node = getParentCaretContainer(selection.getStart());

					if (!node) {
						while (node = dom.get(caretContainerId)) {
							removeCaretContainer(node, false);
						}
					}
				} else {
					rng = selection.getRng(true);

					if (isCaretContainerEmpty(node)) {
						if (move_caret !== false) {
							rng.setStartBefore(node);
							rng.setEndBefore(node);
						}

						dom.remove(node);
					} else {
						child = findFirstTextNode(node);

						if (child.nodeValue.charAt(0) === INVISIBLE_CHAR) {
							child = child.deleteData(0, 1);
						}

						dom.remove(node, 1);
					}

					selection.setRng(rng);
				}
			}
function removeCaretContainer(node, move_caret) {
				var child, rng;

				if (!node) {
					node = getParentCaretContainer(selection.getStart());

					if (!node) {
						while (node = dom.get(caretContainerId)) {
							removeCaretContainer(node, false);
						}
					}
				} else {
					rng = selection.getRng(true);

					if (isCaretContainerEmpty(node)) {
						if (move_caret !== false) {
							rng.setStartBefore(node);
							rng.setEndBefore(node);
						}

						dom.remove(node);
					} else {
						child = findFirstTextNode(node);

						if (child.nodeValue.charAt(0) === INVISIBLE_CHAR) {
							child = child.deleteData(0, 1);
						}

						dom.remove(node, 1);
					}

					selection.setRng(rng);
				}
			}
function removeCaretContainer ( node , move_caret ) { var child , rng ; if ( ! node ) { node = getParentCaretContainer ( selection . getStart ( ) ) ; if ( ! node ) { while ( node = dom . get ( caretContainerId ) ) { removeCaretContainer ( node , false ) ; } } } else { rng = selection . getRng ( true ) ; if ( isCaretContainerEmpty ( node ) ) { if ( move_caret !== false ) { rng . setStartBefore ( node ) ; rng . setEndBefore ( node ) ; } dom . remove ( node ) ; } else { child = findFirstTextNode ( node ) ; if ( child . nodeValue . charAt ( 0 ) === INVISIBLE_CHAR ) { child = child . deleteData ( 0 , 1 ) ; } dom . remove ( node , 1 ) ; } selection . setRng ( rng ) ; } }
Removes the caret container for the specified node or all on the current document
Removes the caret container for the specified node or all on the current document