changeset 949:d8a258cc8a7d draft

Insert-position of MathJax Preview button changed
author HIROSE Yuuji <yuuji@gentei.org>
date Sat, 30 Oct 2021 16:55:35 +0900
parents 1310b29b6ab1
children 4099e5a30e27
files s4-main.js
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/s4-main.js	Fri Oct 29 17:21:43 2021 +0900
+++ b/s4-main.js	Sat Oct 30 16:55:35 2021 +0900
@@ -981,7 +981,7 @@
 	    ta.focus();
 	    helpMarkdownPreview(ta);
 	});
-	ta.insertAdjacentElement('afterend', btn);
+	ta.parentNode.appendChild(btn);
     }
     function init() {
 	isOlderJS = !("insertAdjacentElement" in document.body);

yatex.org