isStandaloneTextElement function

bool isStandaloneTextElement(
  1. Element element
)

Non-empty Text/RichText that is not under a primary control.

Implementation

bool isStandaloneTextElement(Element element) {
  if (!_isVisibleTextHost(element)) return false;
  return !hasPrimaryControlAncestor(element);
}