code: function isFormattableNode(node) {
  	return isEditable(node)
  		&& isVisible(node)
  		&& (node.nodeType == Node.TEXT_NODE
  		|| isHtmlElement(node, ["img", "br"]));
  }
docs: "A formattable node is an editable visible node that is either a Text node, an img, or a br."