function commitFields(...fields: readonly Pick<FieldController<never, never, unknown>, "commit">[]): Promise<void>; Commits fields and waits for their writes, so a command that depends on them, such as Save, can follow. Resolves once every field settled; rejects with the error of the first field whose write or text failed.
await commitFields(title, body);
await editor.save();