1
0
Fork 0
mirror of https://github.com/codex-team/codex.docs.git synced 2025-07-21 14:19:42 +02:00

Add Table Tool (#66)

resolves #58
This commit is contained in:
Taly 2019-03-12 17:24:20 +03:00 committed by GitHub
parent 8412a27690
commit 05d5632e83
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 87 additions and 61 deletions

View file

@ -4,13 +4,11 @@ import EditorJS from '@editorjs/editorjs';
* Block Tools for the Editor
*/
import Header from '@editorjs/header';
import CodeTool from '@editorjs/code';
import Delimiter from '@editorjs/delimiter';
import List from '@editorjs/list';
import Image from '@editorjs/image';
// import RawTool from '@editorjs/raw';
// import Embed from '@editorjs/embed';
// import Quote from '@editorjs/quote';
import CodeTool from '@editorjs/code';
import List from '@editorjs/list';
import Delimiter from '@editorjs/delimiter';
import Table from '@editorjs/table';
/**
* Inline Tools for the Editor
@ -40,30 +38,6 @@ export default class Editor {
}
},
// quote: {
// class: Quote,
// inlineToolbar: true
// },
code: {
class: CodeTool,
shortcut: 'CMD+SHIFT+D'
},
// rawTool: {
// class: RawTool,
// shortcut: 'CMD+SHIFT+R'
// },
delimiter: Delimiter,
// embed: Embed,
list: {
class: List,
inlineToolbar: true
},
image: {
class: Image,
inlineToolbar: true,
@ -83,6 +57,23 @@ export default class Editor {
}
},
code: {
class: CodeTool,
shortcut: 'CMD+SHIFT+D'
},
list: {
class: List,
inlineToolbar: true
},
delimiter: Delimiter,
table: {
class: Table,
inlineToolbar: true
},
/**
* Inline Tools
*/