A class mimicking the old CKCode entrypoint.

Hierarchy

  • CKCode

Constructors

Properties

Methods

Constructors

  • Configure CKCode.

    Parameters

    • options: PartialObjectDeep<CKCodeSettings, {}>

      The CKCode settings.

    Returns CKCode

Properties

instances: ICodeCell[]

Methods

  • Get all instances of CKCode on the page.

    Parameters

    • tag: string = CKCodeCell.tag

      The tag to search for.

    Returns ICodeCell[]

    An array of CKCode instances.

  • Convert legacy settings to new settings.

    Parameters

    • options: PartialObjectDeep<CKCodeSettings, {}>

      The legacy settings.

    Returns PartialObjectDeep<IConfig, {}>

    The new settings.

  • This is roughly equivalent to JQuery's $(document).ready(). It will call the callback when the DOM is ready.

    Parameters

    • callback: (() => void)

      The callback to call when the DOM is ready.

        • (): void
        • Returns void

    Returns void

Generated using TypeDoc