DmitrMakeev commited on
Commit
19f34c2
·
verified ·
1 Parent(s): 6db0b38

Update pages.html

Browse files
Files changed (1) hide show
  1. pages.html +28 -2
pages.html CHANGED
@@ -45,7 +45,10 @@
45
 
46
 
47
 
48
-
 
 
 
49
 
50
 
51
  <script src="https://unpkg.com/grapesjs-component-code-editor"></script>
@@ -792,7 +795,8 @@ z-index: 1000; /* Убедитесь, что кнопка находится п
792
  "grapesjs-tabs", // Плагин вкладок
793
  "grapesjs-tooltip", // Плагин подсказок
794
  "grapesjs-script-editor", // Плагин редактора скриптов
795
- "grapesjs-rulers" // Добавляем плагин линеек
 
796
  ],
797
  pluginsOpts: {
798
  "gjs-blocks-basic": {
@@ -873,6 +877,28 @@ z-index: 1000; /* Убедитесь, что кнопка находится п
873
  rulerHeight: 15,
874
  canvasZoom: 94,
875
  rulerOpts: {}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
876
  }
877
  }
878
  });
 
45
 
46
 
47
 
48
+
49
+ <link href="https://unpkg.com/grapesjs-plugin-toolbox/dist/grapesjs-plugin-toolbox.min.css" rel="stylesheet">
50
+
51
+ <script src="https://unpkg.com/grapesjs-plugin-toolbox"></script>
52
 
53
 
54
  <script src="https://unpkg.com/grapesjs-component-code-editor"></script>
 
795
  "grapesjs-tabs", // Плагин вкладок
796
  "grapesjs-tooltip", // Плагин подсказок
797
  "grapesjs-script-editor", // Плагин редактора скриптов
798
+ "grapesjs-rulers", // Плагин линеек
799
+ "grapesjs-plugin-toolbox" // Добавляем плагин toolbox
800
  ],
801
  pluginsOpts: {
802
  "gjs-blocks-basic": {
 
877
  rulerHeight: 15,
878
  canvasZoom: 94,
879
  rulerOpts: {}
880
+ },
881
+ "grapesjs-plugin-toolbox": {
882
+ // Настройки для grapesjs-plugin-toolbox
883
+ panels: false,
884
+ traitsInSm: true,
885
+ resizer: true,
886
+ hideOnZoom: true,
887
+ breadcrumbs: true,
888
+ labelGrid: 'Grid',
889
+ categoryGrid: 'Basic',
890
+ gridBlock: {},
891
+ gridComponent: {},
892
+ gridClass: 'grid',
893
+ gridCellClass: 'grid-cell',
894
+ cellItemClass: 'cell-item',
895
+ labelColors: 'Image palette',
896
+ labelApply: 'Add',
897
+ palleteIcon: '<i class="fa fa-paint-brush"></i>',
898
+ onAdd: 0,
899
+ refreshPalette: [{sector: 'typography', name: 'Color', property: 'color', type: 'color', defaults: 'black'}, ...],
900
+ minScreenSize: 250,
901
+ icons: [{type: 'default', icon: '<i class="fa fa-cube"></i>'}, ...]
902
  }
903
  }
904
  });