@atlaskit/editor-plugin-card
Version:
Card plugin for @atlaskit/editor-core
5 lines • 497 B
JavaScript
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
import { embedCardNodeView } from './embedCard';
import { embedCardNodeViewWithPreservation } from './embedCardWithPreservation';
export const getEmbedCardNodeViewFactory = () => isExperimentEnabled('platform_editor_preserve_smart_card_embeds') ? embedCardNodeViewWithPreservation : embedCardNodeView;
export const createEmbedCardNodeView = properties => getEmbedCardNodeViewFactory()(properties);