From 5c71bdb6fe125ea8f0778084ef75adead4734e64 Mon Sep 17 00:00:00 2001 From: Arcturus Date: Wed, 11 Dec 2024 02:22:16 +0900 Subject: [PATCH] autoheight support --- write.skin.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/write.skin.php b/write.skin.php index c5c4709..3f7f261 100644 --- a/write.skin.php +++ b/write.skin.php @@ -53,7 +53,7 @@ echo $option_hidden;
"> +

- + 뒤로 @@ -87,4 +87,9 @@ echo $option_hidden; function fwrite_submit(f) { return true; } + + document.getElementById("content").addEventListener("input", function() { + this.style.height = 'auto'; + this.style.height = this.scrollHeight + 'px'; + });