Rich text / foldkit-richtext-dom/editor
events
const · packages/richtext-dom/src/editor.ts:436
const events: Mount.MountDefinitionWithArgs<"RichTextDomEvents", { content: Schema.Struct<{ readonly version: Schema.Literal<1>; readonly children: Schema.$Array<Schema.Union<readonly [Schema.Struct<{ readonly type: Schema.Literal<"Paragraph">; readonly id: Schema.brand<Schema.NonEmptyString, "foldkit-richtext/NodeId">; readonly children: Schema.$Array<Schema.Struct<{ readonly type: Schema.Literal<"Text">; readonly id: Schema.brand<Schema.NonEmptyString, "foldkit-richtext/NodeId">; readonly text: Schema.String; readonly marks: Schema.$Array<Schema.Union<readonly [Schema.NonEmptyString, Schema.Struct<{ readonly name: Schema.NonEmptyString; readonly props: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>; }>]>>; }>>; }>, Schema.Struct<{ readonly type: Schema.Literal<"Heading">; readonly id: Schema.brand<Schema.NonEmptyString, "foldkit-richtext/NodeId">; readonly level: Schema.Literals<readonly [1, 2, 3, 4, 5, 6]>; readonly children: Schema.$Array<Schema.Struct<{ readonly type: Schema.Literal<"Text">; readonly id: Schema.brand<Schema.NonEmptyString, "foldkit-richtext/NodeId">; readonly text: Schema.String; readonly marks: Schema.$Array<Schema.Union<readonly [Schema.NonEmptyString, Schema.Struct<{ readonly name: Schema.NonEmptyString; readonly props: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>; }>]>>; }>>; }>, Schema.Struct<{ readonly type: Schema.Literal<"Node">; readonly kind: S …;The editor's events as a mount: one attachment per element, released with it. The rendering registry is looked up by the host id the placement recorded (§122), so it reaches the mount without entering a Model or a mount's args.