API / @aionbuilders/nabu/extend

PasteFragment

Type Stability: stable

Definition

TypeScript
import type { PasteFragment } from '@aionbuilders/nabu/extend';
TypeScript
interface PasteFragment {
  assets?: Record<string, EmbeddedAsset>;
  blocks: PasteBlock[];
  external?: boolean;
}

Properties

Properties of PasteFragment
PropertyTypeDescription
assetsoptionalRecord<string, EmbeddedAsset>

bytes (base64) of the nabu-asset: refs used by blocks (see docs/design/clipboard-format.md)

blocksPasteBlock[]n/a
externaloptionalboolean

the content comes from outside the editor (the HTML of a web page, Docs…) rather than from Nabu itself: files.importRemote applies to its remote media URLs

Source: src/lib/utils/extensions.js:15