From a436ab1d785ee102d49c5917785dd8343c6eae21 Mon Sep 17 00:00:00 2001 From: Tristan Zhang <82869104+ABucket@users.noreply.github.com> Date: Fri, 3 Oct 2025 19:23:49 +0800 Subject: [PATCH] fix(TextFilePreview): make editor read-only but can be copied (#10499) * fix(TextFilePreview): make editor read-only but can be copied * feat: add table auto-wrap feature for notes * Revert "feat: add table auto-wrap feature for notes" This reverts commit 7785f480b1f585a27e08f6fbf1829a30cad97a4a. --- src/renderer/src/components/Popups/TextFilePreview.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/renderer/src/components/Popups/TextFilePreview.tsx b/src/renderer/src/components/Popups/TextFilePreview.tsx index f5fa787d0b..9c74eef0d1 100644 --- a/src/renderer/src/components/Popups/TextFilePreview.tsx +++ b/src/renderer/src/components/Popups/TextFilePreview.tsx @@ -1,3 +1,4 @@ +import { EditorState } from '@codemirror/state' import { Modal } from 'antd' import { useState } from 'react' import styled from 'styled-components' @@ -55,12 +56,12 @@ const PopupContainer: React.FC = ({ text, title, extension, resolve }) => footer={null}> {extension !== undefined ? ( ) : ( {text}