Function: realmPlugin

realmPlugin<Params>(plugin): (params?: Params) => RealmPlugin

A function that creates an editor plugin.

Type parameters

NameDescription
ParamsThe parameters for the plugin.

Parameters

NameTypeDescription
pluginObject-
plugin.init?(realm: Realm, params?: Params) => voidCalled when the MDXEditor component is mounted and the plugin is initialized.
plugin.update?(realm: Realm, params?: Params) => voidCalled on each re-render. Use this to update the realm with updated property values.

Returns

fn

▸ (params?): RealmPlugin

Parameters
NameType
params?Params
Returns

RealmPlugin