From 571d756f40c8335c5a5d4711988b65a250f995d4 Mon Sep 17 00:00:00 2001 From: mdwriter-09idI Date: Fri, 29 Dec 2023 03:13:03 +0800 Subject: [PATCH] chore: fix some minor and modify readme.md --- README.md | 22 +------------------- src/renderer/src/editor/utils/editorUtils.ts | 2 +- src/renderer/src/store/tree.ts | 1 + 3 files changed, 3 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index 2c989c83..a11d515e 100644 --- a/README.md +++ b/README.md @@ -3,14 +3,13 @@ A WYSIWYG markdown editor. improving the Markdown reading and editing experience -[Documentation](https://doc.bluemd.me/book/docs/introduction) | [中文文档](https://doc.bluemd.me/book/zh-docs/introduction) +[Documentation](https://doc.bluemd.me/book/docs/introduction) | [中文文档](https://doc.bluemd.me/book/zh-docs/introduction) | [👻 Try Online >>>](https://online.bluemd.me/editor) > The release time of mac store will be delayed by 1-3 days *** # Introduction - Bluestone is an WYSIWYG Markdown editor,use [GFM](https://github.github.com/gfm/) syntax,expanded [Mermaid](https://mermaid.js.org/) graphics [Katex](https://katex.org/) formula, Supports light and dark color theme. and generate your Markdown files into online documents in the easiest and fastest way. @@ -37,22 +36,3 @@ and on this basis, enhance Markdown's editing and reading experience - Supports multi tab editing mode - Support pasting HTML, plain text, and markdown code. When pasting HTML and markdown code, it can be configured to automatically download network images to the local machine and convert paths during pasting. - Provides a powerful sharing program, Linux server required. - -## Format - -Text format can be converted with floating bar or syntax - -![](./docs/assets/text.png) - -![](./docs/assets/test1.gif) - -## Drag -![](./docs/assets/drag.gif) - -## Link -Links and images support file paths, usually imported files can be dragged in from the file tree, or directly use ctrl + v -![](./docs/assets/link.gif) - -## Custom sharing service -![](./docs/assets/share.gif) - diff --git a/src/renderer/src/editor/utils/editorUtils.ts b/src/renderer/src/editor/utils/editorUtils.ts index 96d413f6..885344b0 100644 --- a/src/renderer/src/editor/utils/editorUtils.ts +++ b/src/renderer/src/editor/utils/editorUtils.ts @@ -86,7 +86,7 @@ export class EditorUtils { } static reset(editor: Editor, insertNodes?: any[], force?: boolean | History, sel?: BaseSelection) { if (!insertNodes) insertNodes = [EditorUtils.p] - editor.children = JSON.parse(JSON.stringify(insertNodes)) + editor.children = insertNodes if (force) { editor.history = typeof force === 'boolean' ? {redos: [], undos: []} : force } diff --git a/src/renderer/src/store/tree.ts b/src/renderer/src/store/tree.ts index 3502fc07..d39cad5e 100644 --- a/src/renderer/src/store/tree.ts +++ b/src/renderer/src/store/tree.ts @@ -446,6 +446,7 @@ export class TreeStore { file.filePath = path file.filename = parse(path).name file.editName = undefined + file.copyItem = undefined if (!file.folder) this.openNote(file) } parent.children = sortFiles(parent.children!)