Skip to content

Type Editor


Type Editor / @type-editor/collab / util/get-client-id / getClientID

Function: getClientID()

ts
function getClientID(state): string | number;

Defined in: util/get-client-id.ts:13

Gets the client ID from the collab plugin configuration.

Parameters

ParameterTypeDescription
statePmEditorStateThe editor state.

Returns

string | number

The client ID for this editor instance.

Throws

Error if the collab plugin is not installed.