Skip to content

Commit

Permalink
chore: update demo
Browse files Browse the repository at this point in the history
  • Loading branch information
sibiraj-s committed Jan 18, 2021
1 parent d7b136d commit 5f44d4a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -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',
Expand Down
3 changes: 2 additions & 1 deletion demo/src/app/nodeviews/CodeMirror.ts
Original file line number Diff line number Diff line change
@@ -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';

Expand Down
3 changes: 2 additions & 1 deletion demo/src/app/nodeviews/index.ts
Original file line number Diff line number Diff line change
@@ -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);
Expand Down

0 comments on commit 5f44d4a

Please sign in to comment.