Skip to content

CodeMirrorAdapterEx.addClass method

CodeMirrorAdapterEx › addClass

Unofficial

Add a CSS class to an HTML element.

Signature:

addClass(element: HTMLElement, className: string): void

Parameters:

ParameterTypeDescription
elementHTMLElementThe HTML element to add the class to.
classNamestringThe CSS class name to add.

Returns: void