UNPKG

@atlaskit/editor-plugin-metrics

Version:

Metrics plugin for @atlaskit/editor-core

10 lines 342 B
import { AddMarkStep, RemoveMarkStep } from '@atlaskit/editor-prosemirror/transform'; import { ActionType } from '../types'; export var checkMarkChanged = function checkMarkChanged(step) { if (!(step instanceof AddMarkStep || step instanceof RemoveMarkStep)) { return undefined; } return { type: ActionType.CHANGING_MARK }; };