@atlaskit/editor-plugin-synced-block
Version:
SyncedBlock plugin for @atlaskit/editor-core
16 lines • 493 B
JavaScript
import { withLazyLoading } from '@atlaskit/editor-common/lazy-node-view';
export const lazySyncBlockView = props => {
return withLazyLoading({
nodeName: 'syncBlock',
getNodeViewOptions: () => {},
loader: () => {
const result = import( /* webpackChunkName: "@atlaskit-internal_editor-plugin-synced-block-nodeview" */
'./syncedBlock').then(({
syncBlockNodeView
}) => {
return syncBlockNodeView(props);
});
return result;
}
});
};