ponkotsu-md-editor 0.2.37 → 0.2.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/assets/javascripts/markdown_editor.js +11 -1
- data/lib/ponkotsu/md/editor/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5302c9a2279a1cc63c0eb45bc2bef74a3293fc792c4c1b21b73d69368fe75054
|
|
4
|
+
data.tar.gz: 496540544d96bf811322e4de5338fc6cab9d6706c0d061d545272e64630ae528
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 040fc09a76dec0d164fd9190b297cfc63acd4a8059d74a3ee8a492bf2888f11dbaba03b194b83ac285609d522b3cd359b62e273a257bf3a4e829af7e9d8ab592
|
|
7
|
+
data.tar.gz: 8f0cfef74e8bc86cdffb916f5bf7af964578dae487288d3b46da2b91dff1331767d9a045a1157baad4476b64c9981a40258b7b2c15eb53561da4db95d33f3152
|
|
@@ -151,10 +151,20 @@
|
|
|
151
151
|
// 同期的に値を設定(確実性のため)
|
|
152
152
|
hiddenField.value = (textarea.innerText || '').replaceAll('\u00A0', ' ');
|
|
153
153
|
|
|
154
|
+
// 送信ボタンのパラメーターを取得して追加
|
|
155
|
+
const submitter = e.submitter;
|
|
156
|
+
if (submitter && submitter.name && submitter.value) {
|
|
157
|
+
const input = document.createElement('input');
|
|
158
|
+
input.type = 'hidden';
|
|
159
|
+
input.name = submitter.name;
|
|
160
|
+
input.value = submitter.value;
|
|
161
|
+
form.appendChild(input);
|
|
162
|
+
}
|
|
163
|
+
|
|
154
164
|
// 次のティックで送信
|
|
155
165
|
setTimeout(() => {
|
|
156
166
|
// console.log('Form submitting with content length:', hiddenField.value.length);
|
|
157
|
-
form.
|
|
167
|
+
form.submit();
|
|
158
168
|
}, 0);
|
|
159
169
|
});
|
|
160
170
|
}
|