File size: 196 Bytes
2daf8de
 
 
 
 
1
2
3
4
5
6
import { PluginKey } from '@tiptap/pm/state'

export function getAutoPluginKey(pluginKey: PluginKey | string | undefined, defaultName: string) {
  return pluginKey ?? new PluginKey(defaultName)
}