@atlaskit/editor-plugin-code-block-advanced
Version:
CodeBlockAdvanced plugin for @atlaskit/editor-core
14 lines • 594 B
JavaScript
import { withLazyLoading } from '@atlaskit/editor-common/lazy-node-view';
export const lazyCodeBlockView = props => {
return withLazyLoading({
nodeName: 'codeBlock',
getNodeViewOptions: () => {},
loader: async () => {
const {
getCodeBlockAdvancedNodeView
} = await import( /* webpackChunkName: "@atlaskit-internal_editor-plugin-code-block-advanced-nodeview" */
'./codeBlockAdvanced');
return (node, view, getPos, _decs, _nodeViewOptions, innerDecorations) => getCodeBlockAdvancedNodeView(props)(node, view, getPos, innerDecorations);
}
});
};