R
fn

getRawChildren

Recursively extracts and flattens VNodes from potentially nested Fragments while filtering out Comment nodes. Local copy of the primitives helper to keep `@robonen/editor` self-contained.

Signature

ts
export function getRawChildren(children: VNode[]): VNode[]{ ... }

Parameters

ParameterTypeDescription
childrenVNode<import("vue").RendererNode, import("vue").RendererElement, { [key: string]: any; }>[]Array of VNodes to process

Returns

VNode<import("vue").RendererNode, import("vue").RendererElement, { [key: string]: any; }>[]Flattened array of non-Comment VNodes