From 5f44d4a7ab0215498ea3ca12b7268b5979539ffa Mon Sep 17 00:00:00 2001 From: sibiraj-s Date: Mon, 18 Jan 2021 15:29:22 +0530 Subject: [PATCH] chore: update demo --- demo/src/app/components/custom-menu/custom-menu.component.ts | 2 +- demo/src/app/nodeviews/CodeMirror.ts | 3 ++- demo/src/app/nodeviews/index.ts | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/demo/src/app/components/custom-menu/custom-menu.component.ts b/demo/src/app/components/custom-menu/custom-menu.component.ts index 227132d2..2bd96074 100644 --- a/demo/src/app/components/custom-menu/custom-menu.component.ts +++ b/demo/src/app/components/custom-menu/custom-menu.component.ts @@ -1,10 +1,10 @@ import { Component, Input, OnInit } from '@angular/core'; -import { setBlockType } from 'prosemirror-commands'; import { EditorState, Plugin, PluginKey, Transaction } from 'prosemirror-state'; import { EditorView } from 'prosemirror-view'; import { Editor } from 'ngx-editor'; import { isNodeActive } from 'ngx-editor/helpers'; +import { setBlockType } from 'ngx-editor/commands'; @Component({ selector: 'app-custom-menu', diff --git a/demo/src/app/nodeviews/CodeMirror.ts b/demo/src/app/nodeviews/CodeMirror.ts index 17af0508..4a92b8ff 100644 --- a/demo/src/app/nodeviews/CodeMirror.ts +++ b/demo/src/app/nodeviews/CodeMirror.ts @@ -1,10 +1,11 @@ /* tslint:disable:typedef */ -import { exitCode } from 'prosemirror-commands'; import { undo, redo } from 'prosemirror-history'; import { TextSelection, Selection } from 'prosemirror-state'; import { Node as ProsemirrorNode } from 'prosemirror-model'; import { EditorView } from 'prosemirror-view'; +import { exitCode } from 'ngx-editor/commands'; + import CodeMirror from 'codemirror'; import 'codemirror/mode/javascript/javascript'; diff --git a/demo/src/app/nodeviews/index.ts b/demo/src/app/nodeviews/index.ts index c948a0c4..464e7272 100644 --- a/demo/src/app/nodeviews/index.ts +++ b/demo/src/app/nodeviews/index.ts @@ -1,7 +1,8 @@ -import CodeBlockView from './CodeMirror'; import { Node as ProsemirrorNode } from 'prosemirror-model'; import { EditorView } from 'prosemirror-view'; +import CodeBlockView from './CodeMirror'; + const nodeViews = { code_block: (node: ProsemirrorNode, view: EditorView, getPos: () => number) => { return new CodeBlockView(node, view, getPos);