From 420b32c0f81865454ed2880da8d1dc1443ecce58 Mon Sep 17 00:00:00 2001 From: Twest2 Date: Sat, 13 Jun 2026 21:11:58 -0500 Subject: [PATCH] Description editor: insert link placeholder inline instead of prompting Clicking Link no longer pops up "Link text"/"Link URL" dialogs; it inserts [Text](Link) (or [selectedText](Link)) directly so the placeholders can be edited in place. --- app/renderer/editor.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/app/renderer/editor.js b/app/renderer/editor.js index 814bad2..2d6a51b 100644 --- a/app/renderer/editor.js +++ b/app/renderer/editor.js @@ -1864,11 +1864,8 @@ class GuideEditor { } case 'createLink': { const selectedText = window.getSelection().toString(); - const text = selectedText || window.prompt('Link text'); - if (!text) break; - const url = window.prompt('Link URL'); - if (!url) break; - document.execCommand('insertText', false, `[${text}](${url})`); + const text = selectedText || 'Text'; + document.execCommand('insertText', false, `[${text}](Link)`); break; } case 'removeFormat':