1
0
Fork 0
mirror of https://github.com/codex-team/codex.docs.git synced 2025-07-20 21:59:41 +02:00

New tools added + code highlighting (#12)

This commit is contained in:
Peter Savchenko 2018-10-20 17:54:15 +03:00 committed by GitHub
parent f845a0d09f
commit 262c1614ed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 1510 additions and 1508 deletions

View file

@ -1,5 +1,9 @@
import CodeXEditor from 'codex.editor';
import Header from 'codex.editor.header';
import CodeTool from 'codex.editor.code';
import InlineCode from 'codex.editor.inline-code';
import Marker from 'codex.editor.marker';
import ListTool from 'codex.editor.list';
/**
* Class for working with Editor.js
@ -17,6 +21,19 @@ export default class Editor {
config: {
placeholder: 'Enter a title'
}
},
code: CodeTool,
inlineCode: {
class: InlineCode,
shortcut: 'CMD+SHIFT+I'
},
Marker: {
class: Marker,
shortcut: 'CMD+SHIFT+M'
},
list: {
class: ListTool,
inlineToolbar: true
}
},
data: initialData || {