DmitrMakeev commited on
Commit
fdc8eae
·
verified ·
1 Parent(s): 16b9519

Update pages.html

Browse files
Files changed (1) hide show
  1. pages.html +20 -2
pages.html CHANGED
@@ -728,10 +728,28 @@ editor.Blocks.add('video-player-settings-block', {
728
 
729
 
730
 
 
731
 
 
732
 
733
-
734
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
735
 
736
 
737
  </script>
 
728
 
729
 
730
 
731
+ </script>
732
 
733
+ <script>
734
 
735
+ editor.BlockManager.add('custom-iframe', {
736
+ label: 'Custom Iframe',
737
+ content: `<iframe id="custom-iframe" frameborder="0" width="720" 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>`,
738
+ attributes: {
739
+ class: 'fa fa-video-camera'
740
+ }
741
+ });
742
+ editor.CssComposer.addRules(`
743
+ #custom-iframe {
744
+ width: 720px;
745
+ height: 405px;
746
+ border: none;
747
+ margin: 0 auto;
748
+ position: relative;
749
+ top: 0;
750
+ display: block;
751
+ }
752
+ `);
753
 
754
 
755
  </script>