mirror of
https://github.com/codex-team/codex.docs.git
synced 2025-08-08 15:05:26 +02:00
Add image Tool
This commit is contained in:
parent
664e716bfc
commit
a2d0e231d1
4 changed files with 41 additions and 9 deletions
2
public/dist/code-styling.bundle.js
vendored
2
public/dist/code-styling.bundle.js
vendored
File diff suppressed because one or more lines are too long
41
public/dist/editor.bundle.js
vendored
41
public/dist/editor.bundle.js
vendored
File diff suppressed because one or more lines are too long
2
public/dist/main.bundle.js
vendored
2
public/dist/main.bundle.js
vendored
File diff suppressed because one or more lines are too long
|
@ -10,6 +10,7 @@ import CodeTool from '@editorjs/code';
|
||||||
import Delimiter from '@editorjs/delimiter';
|
import Delimiter from '@editorjs/delimiter';
|
||||||
import InlineCode from '@editorjs/inline-code';
|
import InlineCode from '@editorjs/inline-code';
|
||||||
import List from '@editorjs/list';
|
import List from '@editorjs/list';
|
||||||
|
import Image from '@editorjs/image';
|
||||||
import RawTool from '@editorjs/raw';
|
import RawTool from '@editorjs/raw';
|
||||||
import Embed from '@editorjs/embed';
|
import Embed from '@editorjs/embed';
|
||||||
|
|
||||||
|
@ -57,11 +58,11 @@ export default class Editor {
|
||||||
shortcut: 'CMD+SHIFT+M'
|
shortcut: 'CMD+SHIFT+M'
|
||||||
},
|
},
|
||||||
list: {
|
list: {
|
||||||
class: ListTool,
|
class: List,
|
||||||
inlineToolbar: true
|
inlineToolbar: true
|
||||||
},
|
},
|
||||||
image: {
|
image: {
|
||||||
class: ImageTool,
|
class: Image,
|
||||||
inlineToolbar: true,
|
inlineToolbar: true,
|
||||||
config: {
|
config: {
|
||||||
endpoints: {
|
endpoints: {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue