|
44 | 44 |
|
45 | 45 | <!-- Load Tools --> |
46 | 46 | <script src="https://cdn.jsdelivr.net/npm/@editorjs/header@latest"></script><!-- Header --> |
47 | | -<script src="https://cdn.jsdelivr.net/npm/@editorjs/simple-image@latest"></script><!-- Image --> |
| 47 | +<script src="https://cdn.jsdelivr.net/npm/@editorjs/image@latest"></script><!-- Image --> |
48 | 48 | <script src="https://cdn.jsdelivr.net/npm/@editorjs/delimiter@latest"></script><!-- Delimiter --> |
49 | 49 | <script src="https://cdn.jsdelivr.net/npm/@editorjs/list@latest"></script><!-- List --> |
50 | 50 | <script src="https://cdn.jsdelivr.net/npm/@editorjs/checklist@latest"></script><!-- Checklist --> |
|
81 | 81 | * Tools list |
82 | 82 | */ |
83 | 83 | tools: { |
| 84 | + paragraph: { |
| 85 | + config: { |
| 86 | + placeholder: "Enter something" |
| 87 | + } |
| 88 | + }, |
84 | 89 | /** |
85 | 90 | * Each Tool is a Plugin. Pass them via 'class' option with necessary settings {@link docs/tools.md} |
86 | 91 | */ |
|
96 | 101 | /** |
97 | 102 | * Or pass class directly without any configuration |
98 | 103 | */ |
99 | | - image: SimpleImage, |
| 104 | + image: ImageTool, |
100 | 105 |
|
101 | 106 | list: { |
102 | 107 | class: List, |
|
209 | 214 | "Bold": "Полужирный", |
210 | 215 | "Italic": "Курсив", |
211 | 216 | "InlineCode": "Моноширинный", |
| 217 | + "Image": "Картинка" |
212 | 218 | }, |
213 | 219 |
|
214 | 220 | /** |
|
235 | 241 | */ |
236 | 242 | "stub": { |
237 | 243 | 'The block can not be displayed correctly.': 'Блок не может быть отображен' |
| 244 | + }, |
| 245 | + "image": { |
| 246 | + "Caption": "Подпись", |
| 247 | + "Select an Image": "Выберите файл", |
| 248 | + "With border": "Добавить рамку", |
| 249 | + "Stretch image": "Растянуть", |
| 250 | + "With background": "Добавить подложку", |
| 251 | + }, |
| 252 | + "code": { |
| 253 | + "Enter a code": "Код", |
| 254 | + }, |
| 255 | + "linkTool": { |
| 256 | + "Link": "Ссылка", |
| 257 | + "Couldn't fetch the link data": "Не удалось получить данные", |
| 258 | + "Couldn't get this link data, try the other one": "Не удалось получить данные по ссылке, попробуйте другую", |
| 259 | + "Wrong response format from the server": "Неполадки на сервере", |
| 260 | + }, |
| 261 | + "header": { |
| 262 | + "Header": "Заголовок", |
| 263 | + }, |
| 264 | + "paragraph": { |
| 265 | + "Enter something": "Введите текст" |
| 266 | + }, |
| 267 | + "list": { |
| 268 | + "Ordered": "Нумерованный", |
| 269 | + "Unordered": "Маркированный", |
238 | 270 | } |
239 | 271 | }, |
240 | 272 |
|
|
354 | 386 | { |
355 | 387 | type: 'image', |
356 | 388 | data: { |
357 | | - url: 'assets/codex2x.png', |
| 389 | + file : { |
| 390 | + url: 'assets/codex2x.png', |
| 391 | + }, |
358 | 392 | caption: '', |
359 | 393 | stretched: false, |
360 | 394 | withBorder: true, |
|
0 commit comments