mirror of
https://github.com/codex-team/codex.docs.git
synced 2025-07-25 16:19:44 +02:00
chore(editor): update editor, add embed tool (#142)
* update editor * add embed tool * prod bundle
This commit is contained in:
parent
3552105e38
commit
059cfb96f9
10 changed files with 62 additions and 56 deletions
|
@ -13,6 +13,7 @@ import Warning from '@editorjs/warning';
|
|||
import Checklist from '@editorjs/checklist';
|
||||
import LinkTool from '@editorjs/link';
|
||||
import RawTool from '@editorjs/raw';
|
||||
import Embed from '@editorjs/embed';
|
||||
|
||||
/**
|
||||
* Inline Tools for the Editor
|
||||
|
@ -110,6 +111,8 @@ export default class Editor {
|
|||
},
|
||||
|
||||
raw: RawTool,
|
||||
|
||||
embed: Embed,
|
||||
},
|
||||
data: {
|
||||
blocks: [
|
||||
|
|
|
@ -484,3 +484,17 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
.block-embed {
|
||||
margin: 0;
|
||||
|
||||
&__iframe {
|
||||
width: 100%;
|
||||
height: 450px;
|
||||
border: 0;
|
||||
|
||||
@media (--mobile) {
|
||||
height: 200px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue