From 4e30e39b9bfe4ec84ce082187d7cefd2e69890d6 Mon Sep 17 00:00:00 2001 From: canon4ever Date: Thu, 24 Mar 2016 00:05:50 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E8=87=AA=E5=AE=9A=E4=B9=89=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E5=90=8D=EF=BC=8C=E4=BC=9A=E5=AF=BC=E8=87=B4=E6=97=A0?= =?UTF-8?q?=E6=89=A9=E5=B1=95=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复了该问题 --- examples/php/editormd.uploader.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/php/editormd.uploader.class.php b/examples/php/editormd.uploader.class.php index 1cebe8e..ed8624a 100644 --- a/examples/php/editormd.uploader.class.php +++ b/examples/php/editormd.uploader.class.php @@ -252,7 +252,7 @@ private function setSeveName() { - $this->saveName = $this->randomFileName(); + $this->saveName = $this->randomFileName().".".$this->fileExt; if($this->saveName == '') //如果没生成随机文件名,就保留原文件名 { From fa9376483e18550258da0d1d5003ea0663cb19d4 Mon Sep 17 00:00:00 2001 From: Yuri Date: Sun, 1 Apr 2018 21:51:36 +0300 Subject: [PATCH 2/2] plugins localization --- languages/en.js | 6 ++++-- languages/zh-tw.js | 8 +++++--- plugins/code-block-dialog/code-block-dialog.js | 2 +- .../preformatted-text-dialog/preformatted-text-dialog.js | 2 +- 4 files changed, 11 insertions(+), 7 deletions(-) diff --git a/languages/en.js b/languages/en.js index 0120a46..8ee2c85 100644 --- a/languages/en.js +++ b/languages/en.js @@ -77,7 +77,8 @@ }, preformattedText : { title : "Preformatted text / Codes", - emptyAlert : "Error: Please fill in the Preformatted text or content of the codes." + emptyAlert : "Error: Please fill in the Preformatted text or content of the codes.", + placeholder : "coding now...." }, codeBlock : { title : "Code block", @@ -85,7 +86,8 @@ selectDefaultText : "select a code language...", otherLanguage : "Other languages", unselectedLanguageAlert : "Error: Please select the code language.", - codeEmptyAlert : "Error: Please fill in the code content." + codeEmptyAlert : "Error: Please fill in the code content.", + placeholder : "coding now...." }, htmlEntities : { title : "HTML Entities" diff --git a/languages/zh-tw.js b/languages/zh-tw.js index c92d271..68da83f 100644 --- a/languages/zh-tw.js +++ b/languages/zh-tw.js @@ -77,7 +77,8 @@ }, preformattedText : { title : "添加預格式文本或代碼塊", - emptyAlert : "錯誤:請填寫預格式文本或代碼的內容。" + emptyAlert : "錯誤:請填寫預格式文本或代碼的內容。", + placeholder : "coding now...." }, codeBlock : { title : "添加代碼塊", @@ -85,7 +86,8 @@ selectDefaultText : "請語言代碼語言", otherLanguage : "其他語言", unselectedLanguageAlert : "錯誤:請選擇代碼所屬的語言類型。", - codeEmptyAlert : "錯誤:請填寫代碼內容。" + codeEmptyAlert : "錯誤:請填寫代碼內容。", + placeholder: : "coding now...." }, htmlEntities : { title : "HTML實體字符" @@ -124,4 +126,4 @@ factory(window.editormd); } -})(); \ No newline at end of file +})(); diff --git a/plugins/code-block-dialog/code-block-dialog.js b/plugins/code-block-dialog/code-block-dialog.js index 0e89e37..4ecb997 100644 --- a/plugins/code-block-dialog/code-block-dialog.js +++ b/plugins/code-block-dialog/code-block-dialog.js @@ -85,7 +85,7 @@ var dialogHTML = "
" + dialogLang.selectLabel + "" + "
" + - ""; + ""; dialog = this.createDialog({ name : dialogName, diff --git a/plugins/preformatted-text-dialog/preformatted-text-dialog.js b/plugins/preformatted-text-dialog/preformatted-text-dialog.js index e19bbd5..97a272b 100644 --- a/plugins/preformatted-text-dialog/preformatted-text-dialog.js +++ b/plugins/preformatted-text-dialog/preformatted-text-dialog.js @@ -41,7 +41,7 @@ } else { - var dialogContent = ""; + var dialogContent = ""; dialog = this.createDialog({ name : dialogName,