Module

utils/ckeditorerror

@ckeditor/ckeditor5-utils/src/ckeditorerror

module

Filtering

Constants

Classes

Functions

  • attachLinkToDocumentation( message ) → 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: The requested toolbar item is unavailable.' ), { name } );

    Parameters

    message : String

    Message to be logged.

    Returns

    String