fn
isStructureless
Whether a fragment carries no structure the HTML added: only default-type blocks, no marks, no attrs. Such HTML (a code editor's coloured spans, a terminal, a textarea) says less than the plain-text payload beside it.
Signature
ts
export function isStructureless(slice: Slice, registry: Registry): boolean{ ... }Parameters
| Parameter | Type | Description |
|---|---|---|
slice | Slice | — |
registry | Registry | — |
Returns
boolean