upd: update text

This commit is contained in:
purocean
2022-03-07 23:50:33 +08:00
parent 0180307d6c
commit a6cd1485c1
6 changed files with 14 additions and 14 deletions
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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
+3 -3
View File
@@ -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 {
<div>
<div class="label">{ctx.i18n.t('copy-content.type')}</div>
<div>
<label><input v-model={options.type} type="radio" value="rtf" /> {ctx.i18n.t('copy-content.rtf')}</label>
<label><input v-model={options.type} type="radio" value="rt" /> {ctx.i18n.t('copy-content.rt')}</label>
<label><input v-model={options.type} type="radio" value="html" /> HTML </label>
<label><input v-model={options.type} type="radio" value="markdown" /> Markdown </label>
</div>
@@ -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 {
+3 -3
View File
@@ -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,
+3 -3
View File
@@ -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': {
+3 -3
View File
@@ -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': {