DmitrMakeev commited on
Commit
7626b11
·
verified ·
1 Parent(s): ced5297

Update forms.html

Browse files
Files changed (1) hide show
  1. forms.html +4 -1
forms.html CHANGED
@@ -16,6 +16,8 @@
16
  padding: 10px 20px;
17
  margin-top: 20px;
18
  cursor: pointer;
 
 
19
  }
20
  </style>
21
  </head>
@@ -39,7 +41,8 @@
39
 
40
  // Добавление обработчика события для кнопки
41
  document.getElementById('copyJsonButton').addEventListener('click', function() {
42
- const jsonString = editor.json;
 
43
  navigator.clipboard.writeText(jsonString).then(() => {
44
  alert('JSON скопирован в буфер обмена');
45
  }).catch(err => {
 
16
  padding: 10px 20px;
17
  margin-top: 20px;
18
  cursor: pointer;
19
+ position: relative;
20
+ z-index: 1000; /* Устанавливаем z-index на 1000 */
21
  }
22
  </style>
23
  </head>
 
41
 
42
  // Добавление обработчика события для кнопки
43
  document.getElementById('copyJsonButton').addEventListener('click', function() {
44
+ // Используем параметр FormeoEditor#json для получения JSON формы данных
45
+ const jsonString = editor.json; // <-- Используем параметр FormeoEditor#json
46
  navigator.clipboard.writeText(jsonString).then(() => {
47
  alert('JSON скопирован в буфер обмена');
48
  }).catch(err => {