Data API to control in- and output to an instance of CKEditor 5.

interface DataApi {
    getData(options?): string;
    setData(data, options?): void;
}

Implemented by

Methods

  • Gets the data from an instance of CKEditor 5.

    Parameters

    • Optional options: {
          [key: string]: unknown;
      } & DataContextOptions

      options for getting the data

    Returns string

    the data or some signal for invalid data, if supported by implementation