DmitrMakeev commited on
Commit
610f105
·
verified ·
1 Parent(s): 34058ff

Update pages.html

Browse files
Files changed (1) hide show
  1. pages.html +18 -3
pages.html CHANGED
@@ -770,7 +770,7 @@ z-index: 1000; /* Убедитесь, что кнопка находится п
770
 
771
 
772
  <script type="text/javascript">
773
- var editor = grapesjs.init({
774
  container: '#gjs',
775
  fromElement: true,
776
  height: "100vh",
@@ -790,7 +790,8 @@ var editor = grapesjs.init({
790
  "grapesjs-tabs", // Плагин вкладок
791
  "grapesjs-tooltip", // Плагин подсказок
792
  "grapesjs-script-editor", // Плагин редактора скриптов
793
- "grapesjs-rulers" // Добавляем плагин линеек
 
794
  ],
795
  pluginsOpts: {
796
  "gjs-blocks-basic": {
@@ -871,10 +872,24 @@ var editor = grapesjs.init({
871
  rulerHeight: 15,
872
  canvasZoom: 94,
873
  rulerOpts: {}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
874
  }
875
  }
876
  });
877
- </script>
878
  <script>
879
 
880
  // Добавляем кнопку линейки в верхнюю панель инструментов с использованием SVG-иконки
 
770
 
771
 
772
  <script type="text/javascript">
773
+ var editor = grapesjs.init({
774
  container: '#gjs',
775
  fromElement: true,
776
  height: "100vh",
 
790
  "grapesjs-tabs", // Плагин вкладок
791
  "grapesjs-tooltip", // Плагин подсказок
792
  "grapesjs-script-editor", // Плагин редактора скриптов
793
+ "grapesjs-rulers", // Добавляем плагин линеек
794
+ "grapesjs-tui-image-editor" // Добавляем плагин редактора изображений
795
  ],
796
  pluginsOpts: {
797
  "gjs-blocks-basic": {
 
872
  rulerHeight: 15,
873
  canvasZoom: 94,
874
  rulerOpts: {}
875
+ },
876
+ "grapesjs-tui-image-editor": {
877
+ config: {
878
+ includeUI: {
879
+ initMenu: 'filter',
880
+ },
881
+ },
882
+ labelImageEditor: 'Image Editor',
883
+ labelApply: 'Apply',
884
+ height: '650px',
885
+ width: '100%',
886
+ hideHeader: true,
887
+ addToAssets: true,
888
+ upload: false
889
  }
890
  }
891
  });
892
+ </script>
893
  <script>
894
 
895
  // Добавляем кнопку линейки в верхнюю панель инструментов с использованием SVG-иконки