diff --git a/static/js/document.js b/static/js/document.js index f9ebee9e..6d58ba7e 100644 --- a/static/js/document.js +++ b/static/js/document.js @@ -10008,24 +10008,7 @@ import { bindMenuDismiss, dismissOrRemove } from './escMenuStack.js'; } function _handleMarkdownPreviewClickHint() { - if (!_isMarkdownPreviewVisible()) return; - const lang = ((docs.get(activeDocId)?.language) || document.getElementById('doc-language-select')?.value || '').toLowerCase(); - if (lang !== 'markdown') return; - - const now = Date.now(); - _mdPreviewClickTimes = _mdPreviewClickTimes.filter(ts => now - ts < 2500); - _mdPreviewClickTimes.push(now); - if (_mdPreviewClickTimes.length < 3 || now - _mdPreviewHintLastAt < 5000) return; - - _mdPreviewHintLastAt = now; - _mdPreviewClickTimes = []; - if (uiModule?.showToast) { - uiModule.showToast('Preview is read-only. Click Write to edit the document.', { - duration: 5000, - action: 'Write', - onAction: () => _setMarkdownPreviewActive(false, { remember: true }), - }); - } + // Intentionally removed — click-to-highlight while reading is normal behavior } function _refreshMarkdownPreviewIfVisible(docId, content) {