mirror of
https://github.com/codex-team/editor.js
synced 2026-03-15 23:25:47 +01:00
Some new styles, used by Image Tool (#479)
* Some new styles, used by Image Tool * update example * Update submodule * increase version * remove Simple * update some packages
This commit is contained in:
parent
986708ed90
commit
8ceb615cd5
16 changed files with 1829 additions and 2419 deletions
|
|
@ -42,7 +42,7 @@
|
|||
https://github.com/codex-editor/header#installation
|
||||
-->
|
||||
<script src="./tools/header/dist/bundle.js"></script><!-- Header -->
|
||||
<script src="./tools/simple-image/dist/bundle.js"></script><!-- Simple Image -->
|
||||
<script src="./tools/image/dist/bundle.js"></script><!-- Image -->
|
||||
<script src="./tools/delimiter/dist/bundle.js"></script><!-- Delimiter -->
|
||||
<script src="./tools/list/dist/bundle.js"></script><!-- List -->
|
||||
<script src="./tools/quote/dist/bundle.js"></script><!-- Quote -->
|
||||
|
|
@ -89,7 +89,13 @@
|
|||
/**
|
||||
* Or pass class directly without any configuration
|
||||
*/
|
||||
image: SimpleImage,
|
||||
image: {
|
||||
class: ImageTool,
|
||||
config: {
|
||||
url: 'http://localhost:8008',
|
||||
},
|
||||
inlineToolbar: ['link'],
|
||||
},
|
||||
|
||||
list: {
|
||||
class: List,
|
||||
|
|
@ -202,16 +208,6 @@
|
|||
text : 'Помимо этого, данные о Блоках удобно очищать, фильтровать и обрабатывать на бэкенде.'
|
||||
}
|
||||
},
|
||||
{
|
||||
type: 'image',
|
||||
data: {
|
||||
url : 'https://ifmo.su/upload/redactor_images/o_e48549d1855c7fc1807308dd14990126.jpg',
|
||||
caption: '',
|
||||
stretched: false,
|
||||
withBorder: true,
|
||||
withBackground: false,
|
||||
}
|
||||
},
|
||||
{
|
||||
type : 'delimiter',
|
||||
data : {}
|
||||
|
|
@ -222,6 +218,18 @@
|
|||
text : 'Мы работали над этим редактором более двух лет. В отладке принимали участие известные медиа-проекты: vc.ru, TJ, DTF — с их помощью удалось найти и исправить много ошибок, стабилизировать ядро. Вместе с этим мы развивали API, который позволяет создавать плагины под любые задачи. Надеемся, вам понравится 😏'
|
||||
}
|
||||
},
|
||||
{
|
||||
type: 'image',
|
||||
data: {
|
||||
file: {
|
||||
url : 'https://ifmo.su/upload/redactor_images/o_e48549d1855c7fc1807308dd14990126.jpg',
|
||||
},
|
||||
caption: '',
|
||||
stretched: false,
|
||||
withBorder: true,
|
||||
withBackground: false,
|
||||
}
|
||||
},
|
||||
]
|
||||
},
|
||||
onReady: function(){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue