Mass guide editor changes #18

Merged
Tyler merged 25 commits from guide_editor_changes into main 2026-06-15 15:37:48 +00:00
Showing only changes of commit 46d12cc829 - Show all commits
+5 -1
View File
@@ -1825,8 +1825,12 @@ class GuideEditor {
document.execCommand('formatBlock', false, block || 'blockquote'); document.execCommand('formatBlock', false, block || 'blockquote');
break; break;
case 'createLink': { case 'createLink': {
const selectedText = window.getSelection().toString();
const text = selectedText || window.prompt('Link text');
if (!text) break;
const url = window.prompt('Link URL'); const url = window.prompt('Link URL');
if (url) document.execCommand('createLink', false, url); if (!url) break;
document.execCommand('insertText', false, `[${text}](${url})`);
break; break;
} }
case 'removeFormat': case 'removeFormat':