From 0595da091298145702b9fb706748a74e61458031 Mon Sep 17 00:00:00 2001 From: Mostafa Said <94674993+MooseSaeed@users.noreply.github.com> Date: Sun, 3 Apr 2022 12:13:58 +0200 Subject: [PATCH] update strikethrough --- public/js/app.js | 4 ++-- resources/js/components/Markdowntoolbar.vue | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/public/js/app.js b/public/js/app.js index c35c9a4..40a21c1 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -17626,7 +17626,7 @@ __webpack_require__.r(__webpack_exports__); socket: null, stream: null, transcript: [""], - magicKeys: ["apply bold", "apply link", "apply heading", "apply list", "apply bullet list", "apply quotation", "apply coding", "apply table", "apply image", "apply underline", "apply line divider"], + magicKeys: ["apply bold", "apply link", "apply heading", "apply list", "apply bullet list", "apply quotation", "apply coding", "apply table", "apply image", "apply underline", "apply strike through", "apply line divider"], keyIncluded: false }; }, @@ -17739,7 +17739,7 @@ __webpack_require__.r(__webpack_exports__); var transcript = received.channel.alternatives[0].transcript; if (transcript && received.is_final) { - var textarea = document.getElementById("myTextArea"); + var textarea = document.querySelector("#myTextArea"); var magicKeys = _this.magicKeys; magicKeys.forEach(function (key) { if (transcript.includes(key)) { diff --git a/resources/js/components/Markdowntoolbar.vue b/resources/js/components/Markdowntoolbar.vue index 10d261a..36ea726 100644 --- a/resources/js/components/Markdowntoolbar.vue +++ b/resources/js/components/Markdowntoolbar.vue @@ -229,6 +229,7 @@ export default { "apply table", "apply image", "apply underline", + "apply strike through", "apply line divider", ], keyIncluded: false, @@ -354,7 +355,7 @@ export default { received.channel.alternatives[0].transcript; if (transcript && received.is_final) { const textarea = - document.getElementById("myTextArea"); + document.querySelector("#myTextArea"); const magicKeys = this.magicKeys;