Rich text / foldkit-richtext
run
function · packages/richtext/src/command.ts:1207
function run(
state: EditorState,
command: Command,
ids: CommandIds,
options?: RunOptions,
): TransactionResultResolves one intent into a transaction and applies it atomically. Commands
describe intent; the returned positionMap and ChangeSet describe the
document effect, and rejection returns no partially edited state.