Socket
Socket
Sign inDemoInstall

react-lz-editor

Package Overview
Dependencies
100
Maintainers
1
Versions
54
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.11.0 to 0.11.1

1

editor/toolBar/mediaImageUploader.js

@@ -263,2 +263,3 @@ 'use strict';

uploadProps: this.props.uploadProps,
lang: this.props.lang,
limit: 10,

@@ -265,0 +266,0 @@ fileType: 'image' })

3

editor/toolBar/medioAudioUploader.js

@@ -125,3 +125,4 @@ 'use strict';

uploadConfig: this.props.uploadConfig,
uploadProps: this.props.uploadProps })
uploadProps: this.props.uploadProps,
lang: this.props.lang })
)

@@ -128,0 +129,0 @@ );

@@ -127,2 +127,3 @@ 'use strict';

uploadConfig: this.props.uploadConfig,
lang: this.props.lang,
fileType: 'video',

@@ -129,0 +130,0 @@ uploadProps: this.props.uploadProps })

@@ -6,8 +6,8 @@ "use strict";

'en': {
cancelText: "cancel",
cancelText: "Cancel",
OKText: "OK",
fullScreen: "full",
quitFullScreen: "quit",
sourceCode: "source",
fullScreen: "Full",
quitFullScreen: "Quit",
sourceCode: "Source",
preview: "prev",

@@ -19,5 +19,5 @@ selectedText: "Please make sure you have selected text before add a new link!",

errorUploadingFile: "!!!!!!!!!!!!ERROR UPLOADING!!!!!!!!!!!!",
directToURL: "Please input url",
directToURL: "Please input a valid url",
directToURLTip: "Please enter the regular URL(with \"http://\" or \"https://\" preffix.)",
markdownTip: "Please markdown context here",
markdownTip: "Please markdown here",
wrongImageAddress: 'Wrong image address!',

@@ -34,3 +34,3 @@

insertNoStyleText: "Please insert plain text content here",
pasteTipMsg: "Please paste the contents here and click the OK button",
pasteTipMsg: "Please paste the contents here and click OK button",

@@ -44,11 +44,11 @@ H1: "Head level 1",

ol: "Ordered list",
pre: "predefined",
alignLeft: "left",
alignCenter: "center",
alignRight: "right",
alignJustify: "justify",
textBold: "bold",
textItalic: "italic",
textUnderline: "underline",
textCode: "code",
pre: "Predefined",
alignLeft: "Left",
alignCenter: "Center",
alignRight: "Right",
alignJustify: "Justify",
textBold: "Bold",
textItalic: "Italic",
textUnderline: "Underline",
textCode: "Code",

@@ -221,4 +221,98 @@ insertImageModalTitle: "Insert image",

}
},
zh: {
cancelText: "取消",
OKText: "確定",
fullScreen: "全屏",
quitFullScreen: "退出全屏",
sourceCode: "源碼",
preview: "預覽",
selectedText: "創建連結前請先選中連結文字!",
selectedLink: "移除連結前請先選中連結!",
successToDraftBox: "編輯器內容已更新到保險庫中",
successPasteCleanText: "已經清空樣式並成功粘貼,可能部分圖片因原網站防盜鏈功能暫未顯示。",
errorUploadingFile: "!!!!!!!!!!上傳文件錯誤!!!!!!!!!!",
directToURL: "請輸出你要跳轉的連結",
directToURLTip: "請輸入符合規範的網址連結(以“http://”或“https://”為前導)",
markdownTip: "請在這裡編輯您的markdown內容",
wrongImageAddress: '圖片地址錯誤!',
undo: "撤銷(Ctrl-Z,Cmd-Z)",
redo: "重做(Ctrl-Y,Cmd-Shift-Z)",
confirmToRemove: "確認移除所選擇文字的樣式?",
doRemove: "確認移除",
doNotRemove: "取消操作",
pasteText: "純文字粘貼",
insertNoStyleText: "請插入無樣式文字內容",
pasteTipMsg: "請在這裡粘貼內容後點擊確定按鈕",
H1: "標題1",
H2: "標題2",
H3: "標題3",
H4: "標題4",
refs: "引用",
ul: "無序清單",
ol: "有序列錶",
pre: "區段",
alignLeft: "左對齊",
alignCenter: "居中",
alignRight: "右對齊",
alignJustify: "兩端對齊",
textBold: "加粗",
textItalic: "斜體",
textUnderline: "底線",
textCode: "等寬字體",
insertImageModalTitle: "插入圖片",
previewImageModalTitle: "圖片預覽",
inPreviewProgress: "圖片正在處理並生成預覽,請稍等片刻…",
imageMasker: "插入浮水印圖片",
originalImage: "插入原始圖片",
validatedImage: "確認無誤",
refreshImage: "手動重繪",
insertVideoTip: "上傳視頻",
insertVideoModalTitle: "插入視頻",
insertAudioTip: "上傳音訊",
insertAudioModalTitle: "插入音訊",
addLink: "新增連結",
removeLink: "移除連結",
previewMsg: '內容預覽',
deleteDraftItem: "删除",
draftTipMsg: "保險庫——編輯器中按Ctrl+S或Cmd+S存入保險庫,點擊打開保險庫以繼續",
draftModalTitle: "編輯器保險庫條目清單:",
confirmUseDraft: "確定後編輯器內容將會被最後一次保存的內容替換,若有更改,替換後將不可恢復,是否繼續?",
draftCautionMsg: "編輯器內容默認一分鐘保存一次,可以手動Ctrl+S或Cmd+S保存,內容小於20字時將不會保存在保險庫中;清單中不用數據請及時删除維護,否則會影響保險庫保存容量!",
autoSave: "自動保存庫",
inPfopProgress: "圖片正在處理請稍等片刻",
pfopError: "持久保存圖片過程中發生錯誤!請參攷:",
btnAddBatch: "批量添加",
batchAddModalTitle: "批量上傳圖片",
chkAutoWaterMask: "自動加浮水印",
invalidUrl: "驗證您填寫的URL地址無效,請檢查!",
supportMimeMsg: "只能上傳指定檔案,請重新選擇!參攷",
invalidType: "不合法的上傳資源類型!",
invalidFileType: "必須填寫fileType(字串型):image或video或audio!",
uploadingTipMsg: "請根據要求上傳。",
limitCountTip: "只能保留最後上傳的$limit$個檔案,其他超出的已經被頂掉。",
btnUpload: "點擊上傳",
manuallyUploadTip: "您還可以手動輸入檔案資源地址,輸入完畢按回車鍵確認",
limitAndTypeTip: "您可以上傳$limit$個類型為$type$的檔案。",
auto: "[自動]",
height: "高度",
width: "寬度",
zoomTipMsg: "按照圖片$accordingSize$自動縮放到$targetSize$",
pleaseUploading: "請上傳圖片",
watermarkPos: {
north: "上",
northWest: "左上",
northCenter: "中上",
northEast: "右上",
center: "中",
west: "左中",
centerCenter: "中心",
east: "右中",
south: "下",
southWest: "左下",
southCenter: "中下",
southEast: "右下"
}
}
}
};
{
"name": "react-lz-editor",
"version": "0.11.0",
"version": "0.11.1",
"description": "An open source react rich-text editor (mordern react editor includes media support such as texts, images, videos, audios, links etc.), development based on Draft-Js and Ant-design, good support html, markdown, draft-raw mode.",

@@ -5,0 +5,0 @@ "main": "index",

@@ -1,6 +0,6 @@

[中文版](https://github.com/leejaen/react-lz-editor/blob/master/README.cn.md)
[中文](https://github.com/leejaen/react-lz-editor/blob/master/README.cn.md)
# react-lz-editor
An open source react rich-text editor ( mordern react editor includes media support such as texts, images, videos, audios, links etc. ), development based on Draft-Js and Ant-design, good support html, markdown, draft-raw mode. It's supports multiple languages well(just English and Chinese for now) and welcome to add your language supports.
An open source react rich-text editor ( mordern react editor includes media support such as texts, images, videos, audios, links etc. ), development based on Draft-Js and Ant-design, good support html, markdown, draft-raw mode. It's supports multiple languages well(just English and Chinese for now) and welcome you add your language supports.

@@ -37,3 +37,3 @@ ## Live demo

this.state = {
htmlContent: `<h1> Head level 1</h1>
htmlContent: `<h1>Yankees, Peeking at the Red Sox, Will Soon Get an Eyeful</h1>
<p>Whenever Girardi stole a glance, there was rarely any good news for the Yankees. While Girardi’s charges were clawing their way to a split of their four-game series against the formidable Indians, the Boston Red Sox were plowing past the rebuilding Chicago White Sox, sweeping four games at Fenway Park.</p>`,

@@ -96,2 +96,3 @@ markdownContent: "## HEAD 2 \n markdown examples \n ``` welcome ```"

| importContent | string | "" | Editor content value, default to "" |
| lang | string | "" | Editor using language, default to your browser language settings |
| cbReceiver | function | null | `Callback` function, the changed value will be sent to its parameter. |

@@ -98,0 +99,0 @@ | undoRedo | bool | true | Enabled `undo and redo` feature, default to true |

@@ -194,4 +194,3 @@ 'use strict';

),
_react2.default.createElement(_index2.default, { active: true, importContent: this.state.htmlContent, cbReceiver: this.receiveHtml, uploadProps: uploadProps,
lang: 'en' }),
_react2.default.createElement(_index2.default, { active: true, importContent: this.state.htmlContent, cbReceiver: this.receiveHtml, uploadProps: uploadProps }),
_react2.default.createElement('br', null),

@@ -198,0 +197,0 @@ _react2.default.createElement('br', null),

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc