diff --git a/app/javascript/textarea-initializer.js b/app/javascript/textarea-initializer.js index d4b3bee02b5..1b72b076e79 100644 --- a/app/javascript/textarea-initializer.js +++ b/app/javascript/textarea-initializer.js @@ -57,8 +57,8 @@ export default class { responseKey: 'url', csrfToken: CSRF.getToken(), placeholder: '%filenameをアップロード中...', - // uploadImageTag: - // '%filename\n', + uploadImageTag: + '%filename\n', afterPreview: () => { autosize.update(textarea) diff --git a/package.json b/package.json index 58d98da870d..8882a9d40ff 100644 --- a/package.json +++ b/package.json @@ -50,7 +50,7 @@ "sweetalert2": "^11.1.5", "swr": "^1.3.0", "tailwindcss": "^3.1.8", - "textarea-markdown": "^1.5.1", + "textarea-markdown": "^1.6.0", "tributejs": "^5.1.3", "use-sync-external-store": "^1.2.0", "vue": "^2.6.10", diff --git a/yarn.lock b/yarn.lock index 19d5a35933b..099c37a0f5c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -8976,10 +8976,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@^1.5.1: - version "1.5.1" - resolved "https://registry.yarnpkg.com/textarea-markdown/-/textarea-markdown-1.5.1.tgz#90530d6292ba17972538ba20139006fbd0ac76fa" - integrity sha512-WAwxa1n7CG0ySfGSVll/G0cIFKP47fqwr64PiDiHhlXTrknOEyTnz+OKR3OWvEi9125SC+QbuZiJ20nE22F7vw== +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== dependencies: file-type "^16.5.4" filesize "^10.0.5"