Module

utils/ckeditorerror

@ckeditor/ckeditor5-utils/src/ckeditorerror

module

Filtering

Constants

Classes

Functions

  • attachLinkToDocumentation( errorName ) → String

    Attaches the link to the documentation at the end of the error message. Use whenever you log a warning or error on the console. It is also used by CKEditorError.

    /**
     * There was a problem processing the configuration of the toolbar. The item with the given
     * name does not exist so it was omitted when rendering the toolbar.
     *
     * @error toolbarview-item-unavailable
     * @param {String} name The name of the component.
     * /
    console.warn( attachLinkToDocumentation( 'toolbarview-item-unavailable' ), { name } );

    Parameters

    errorName : String

    Error name to be linked.

    Returns

    String