From 73c10e3f8dbe9c2bd2f29c772235421aa5f03f58 Mon Sep 17 00:00:00 2001 From: goruchan Date: Fri, 30 Aug 2024 05:19:49 +0900 Subject: [PATCH 1/2] =?UTF-8?q?=E3=83=AD=E3=83=BC=E3=82=AB=E3=83=AB?= =?UTF-8?q?=E7=89=88=20textarea-markdown=20=E3=81=A7=E3=81=AE=E5=8B=95?= =?UTF-8?q?=E4=BD=9C=E7=A2=BA=E8=AA=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/javascript/textarea-initializer.js | 2 +- package.json | 2 +- yarn.lock | 6 ++---- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/app/javascript/textarea-initializer.js b/app/javascript/textarea-initializer.js index f957a1cc95e..31871366f49 100644 --- a/app/javascript/textarea-initializer.js +++ b/app/javascript/textarea-initializer.js @@ -58,7 +58,7 @@ export default class { csrfToken: CSRF.getToken(), placeholder: '%filenameをアップロード中...', uploadImageTag: - '%filename\n', + '%filename\n', afterPreview: () => { autosize.update(textarea) diff --git a/package.json b/package.json index 11a582cf162..d76d39b2b1b 100644 --- a/package.json +++ b/package.json @@ -49,7 +49,7 @@ "sweetalert2": "^11.1.5", "swr": "^1.3.0", "tailwindcss": "^3.1.8", - "textarea-markdown": "^1.6.0", + "textarea-markdown": "../npm/textarea-markdown", "tributejs": "^5.1.3", "use-sync-external-store": "^1.2.0", "vue": "^2.6.10", diff --git a/yarn.lock b/yarn.lock index f0b118f1ec2..cb3c44b6d42 100644 --- a/yarn.lock +++ b/yarn.lock @@ -8961,10 +8961,8 @@ text-table@^0.2.0: resolved "https://registry.yarnpkg.com/text-table/-/text-table-0.2.0.tgz#7f5ee823ae805207c00af2df4a84ec3fcfa570b4" integrity sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw== -textarea-markdown@^1.6.0: - version "1.6.0" - resolved "https://registry.yarnpkg.com/textarea-markdown/-/textarea-markdown-1.6.0.tgz#1689a8beaf17b0b11a440dfbebd4649ba3158018" - integrity sha512-cF4Xh54cu30fb+8a/SaN+r2ol0N8O9m5TKkxiGf7Cvv87FT4WfcQLWGanuwhKCdrZFjf7Vgv5X3XwpefVl8/gw== +textarea-markdown@../npm/textarea-markdown: + version "1.6.1" dependencies: file-type "^16.5.4" filesize "^10.0.5" From b9bf27cb3fea9aaf42cc242737fb542a0bcf057f Mon Sep 17 00:00:00 2001 From: goruchan Date: Sat, 31 Aug 2024 06:08:40 +0900 Subject: [PATCH 2/2] =?UTF-8?q?textarea-markdown=20npm=20=E3=81=AE?= =?UTF-8?q?=E3=83=90=E3=83=BC=E3=82=B8=E3=83=A7=E3=83=B3=E3=82=92=E6=9B=B4?= =?UTF-8?q?=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- yarn.lock | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index d76d39b2b1b..b9de4ef1407 100644 --- a/package.json +++ b/package.json @@ -49,7 +49,7 @@ "sweetalert2": "^11.1.5", "swr": "^1.3.0", "tailwindcss": "^3.1.8", - "textarea-markdown": "../npm/textarea-markdown", + "textarea-markdown": "^1.6.1", "tributejs": "^5.1.3", "use-sync-external-store": "^1.2.0", "vue": "^2.6.10", diff --git a/yarn.lock b/yarn.lock index cb3c44b6d42..34e1ee09582 100644 --- a/yarn.lock +++ b/yarn.lock @@ -8961,8 +8961,10 @@ text-table@^0.2.0: resolved "https://registry.yarnpkg.com/text-table/-/text-table-0.2.0.tgz#7f5ee823ae805207c00af2df4a84ec3fcfa570b4" integrity sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw== -textarea-markdown@../npm/textarea-markdown: +textarea-markdown@^1.6.1: version "1.6.1" + resolved "https://registry.yarnpkg.com/textarea-markdown/-/textarea-markdown-1.6.1.tgz#8b9483c29dc09f0923ca8c5754dd6f5f07344032" + integrity sha512-Dgj4vbPcji6WkXQLIHqr1jgSpK52hZbO6KSylnBOfpbEOqxTD3jaQCO7+EK/+7o6IbSm+wXQqcZRnv22E1+Neg== dependencies: file-type "^16.5.4" filesize "^10.0.5"