DmitrMakeev commited on
Commit
2a6c2e8
·
verified ·
1 Parent(s): db0799b

Update js/rus/rus.js

Browse files
Files changed (1) hide show
  1. js/rus/rus.js +27 -0
js/rus/rus.js CHANGED
@@ -341,3 +341,30 @@ editor.Blocks.add('video-player-settings-block', {
341
  </div>`,
342
  content: { type: 'video-player-settings' },
343
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
341
  </div>`,
342
  content: { type: 'video-player-settings' },
343
  });
344
+
345
+
346
+
347
+
348
+ // Создаем блок для компонента Iframe
349
+ editor.BlockManager.add('custom-iframe', {
350
+ label: `
351
+ <div style="display: flex; flex-direction: column; align-items: center;">
352
+ <!-- icon666.com - MILLIONS vector ICONS FREE --><svg id="Layer_1" enable-background="new 0 0 48 48" viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg" width="36" height="36"><path d="m38 8h-28c-2.2 0-4 1.8-4 4v24c0 2.2 1.8 4 4 4h8v-4h-8v-20h28v20h-8v4h8c2.2 0 4-1.8 4-4v-24c0-2.2-1.8-4-4-4zm-14 12-8 8h6v12h4v-12h6z" fill="#000000" style="fill: rgb(237, 237, 237);"></path></svg>
353
+ <span style="margin-top: 8px;">Iframe</span>
354
+ </div>`,
355
+ content: `<iframe id="custom-iframe" frameborder="0" width="480" height="405" src="https://rutube.ru/play/embed/538dc9cc0b952dd52f47e28df7df5e81/" allow="clipboard-write; autoplay" webkitallowfullscreen mozallowfullscreen allowfullscreen style="position: relative; top: 0; margin: 0 auto; display: block;"></iframe>`,
356
+ attributes: {
357
+ class: ''
358
+ }
359
+ });
360
+ editor.CssComposer.addRules(`
361
+ #custom-iframe {
362
+ width: 480px;
363
+ height: 405px;
364
+ border: none;
365
+ margin: 0 auto;
366
+ position: relative;
367
+ top: 0;
368
+ display: block;
369
+ }
370
+ `);