diff --git a/README.md b/README.md index 0554e3d1..f113f69d 100644 --- a/README.md +++ b/README.md @@ -92,7 +92,7 @@ For more information on how to use the following functions, please see [characte ### [v3.25.0](https://github.com/purocean/yn/releases/tag/v3.25.0) 2022-03-02 1. feat: add the sharing preview function in the local area network -2. feat: add "Upload local image to image bed" option to Copy RTF/HTML +2. feat: add "Upload local image to image bed" option to Copy Content 3. feat: add some built-in style classes 4. upd: upgrade Drawio version 5. upd: optimize export/print Mermaid style diff --git a/help/SHORTCUTS.md b/help/SHORTCUTS.md index 5b22f62e..99a1c4c4 100644 --- a/help/SHORTCUTS.md +++ b/help/SHORTCUTS.md @@ -36,7 +36,7 @@ Insert Document Link | Alt/Option + D Run Selection in Terminal | Shift + Alt/Option + R Transform to Uppercase | Ctrl/Cmd + K, Ctrl/Cmd + U Transform to Lowercase | Ctrl/Cmd + K, Ctrl/Cmd + L -Paste RTF as Document | Ctrl/Cmd + D + V +Paste Rich Text as Document | Ctrl/Cmd + D + V Pase Image as Base64 | Ctrl/Cmd + B + V Show Context Menu in the Preview | Right-click Target (Hold Alt in the Browser) Edit Table Cell | Double Click Cell diff --git a/src/renderer/plugins/copy-content.tsx b/src/renderer/plugins/copy-content.tsx index f15f57c4..97a2ee3e 100644 --- a/src/renderer/plugins/copy-content.tsx +++ b/src/renderer/plugins/copy-content.tsx @@ -9,7 +9,7 @@ export default { inlineLocalImage: false, uploadLocalImage: false, highlightCode: false, - type: 'rtf' as 'html' | 'rtf' | 'markdown', + type: 'rt' as 'html' | 'rt' | 'markdown', }) const panel = ctx.lib.vue.defineComponent({ @@ -28,7 +28,7 @@ export default {
{ctx.i18n.t('copy-content.type')}
- +
@@ -110,7 +110,7 @@ export default { await ctx.ui.useModal().alert({ content: ctx.i18n.t('copy-content.complete') }) } - if (options.type === 'rtf') { + if (options.type === 'rt') { await ctx.base.writeToClipboard('text/html', content) ctx.ui.useToast().show('info', ctx.i18n.t('copied')) } else { diff --git a/src/renderer/plugins/editor-paste.ts b/src/renderer/plugins/editor-paste.ts index 843c4a35..632e6297 100644 --- a/src/renderer/plugins/editor-paste.ts +++ b/src/renderer/plugins/editor-paste.ts @@ -66,7 +66,7 @@ export default { window.addEventListener('paste', paste as any, true) const pasteImageAsBase64ActionId = 'plugin.editor-paste.insert-image-base64' - const pasteRtfActionId = 'plugin.editor-paste.insert-rtf' + const pasteRtfActionId = 'plugin.editor-paste.insert-rt' const pasteImageFromClipboard = async (asBase64: boolean) => { ctx.base.readFromClipboard(async (type, getType) => { @@ -105,7 +105,7 @@ export default { { id: pasteRtfActionId, type: 'normal', - title: ctx.i18n.t('status-bar.insert.paste-rtf'), + title: ctx.i18n.t('status-bar.insert.paste-rt'), subTitle: 'Markdown', onClick: pasteRtf }, @@ -136,7 +136,7 @@ export default { editor.addAction({ id: pasteRtfActionId, - label: ctx.i18n.t('editor.context-menu.paste-rtf-as-markdown'), + label: ctx.i18n.t('editor.context-menu.paste-rt-as-markdown'), contextMenuGroupId: 'clipboard', contextMenuOrder: 3, run: pasteRtf, diff --git a/src/share/i18n/languages/en.ts b/src/share/i18n/languages/en.ts index 95c7c356..3af0a2ff 100644 --- a/src/share/i18n/languages/en.ts +++ b/src/share/i18n/languages/en.ts @@ -215,7 +215,7 @@ const data = { }, 'insert': { 'insert': 'Insert', - 'paste-rtf': 'Paste Rich Text', + 'paste-rt': 'Paste Rich Text', 'paste-img-base64': 'Paste Image', }, 'tool': { @@ -360,7 +360,7 @@ const data = { 'context-menu': { 'paste-image': 'Paste Image', 'paste-image-as-base64': 'Paste Image as Base64', - 'paste-rtf-as-markdown': 'Paste RTF as Markdown', + 'paste-rt-as-markdown': 'Paste Rich Text as Markdown', 'add-attachment': 'Add Attachment', 'link-doc': 'Link Document', 'link-file': 'Link File', @@ -490,7 +490,7 @@ const data = { 'inline-image': 'Inline Local Image', 'upload-image': 'Upload Local Image', 'highlight-code': 'Highlight Code', - 'rtf': 'Rich Text Format', + 'rt': 'Rich Text', 'complete': 'Conversion completed, click OK to copy', }, 'share-preview': { diff --git a/src/share/i18n/languages/zh-CN.ts b/src/share/i18n/languages/zh-CN.ts index cc3d9f6d..4a5c4692 100644 --- a/src/share/i18n/languages/zh-CN.ts +++ b/src/share/i18n/languages/zh-CN.ts @@ -216,7 +216,7 @@ const data: BaseLanguage = { }, 'insert': { 'insert': '插入', - 'paste-rtf': '粘贴富文本', + 'paste-rt': '粘贴富文本', 'paste-img-base64': '粘贴图片', }, 'tool': { @@ -361,7 +361,7 @@ const data: BaseLanguage = { 'context-menu': { 'paste-image': '粘贴图片', 'paste-image-as-base64': '粘贴图片为 Base64', - 'paste-rtf-as-markdown': '粘贴富文本为 Markdown', + 'paste-rt-as-markdown': '粘贴富文本为 Markdown', 'add-attachment': '添加附件', 'link-doc': '链接文档', 'link-file': '链接文件', @@ -491,7 +491,7 @@ const data: BaseLanguage = { 'inline-image': '内联本地图片', 'upload-image': '上传本地图片', 'highlight-code': '高亮代码', - 'rtf': '富文本', + 'rt': '富文本', 'complete': '转换完成,点击确定复制', }, 'share-preview': {