* adjust for ueditor and markdown.

This commit is contained in:
wangyidong
2016-12-23 17:19:06 +08:00
parent 4d998d8bad
commit 1c6d9f4197
39 changed files with 68392 additions and 2380 deletions
+1 -1
View File
@@ -605,7 +605,7 @@ class hyperdown
break;
// table
case preg_match("/^((?:(?:(?:[ :]*\-[ :]*)+(?:\||\+))|(?:(?:\||\+)(?:[ :]*\-[ :]*)+)|(?:(?:[ :]*\-[ :]*)+(?:\||\+)(?:[ :]*\-[ :]*)+))+)$/", $line, $matches):
case preg_match("/^((?:(?:(?:[ :]*\-[ :]*)+(?:\||\+))|(?:(?:\||\+)(?:[ :]*\-[ :]*)+)|(?:(?:[ :]*\-[ :]*)+(?:\||\+)(?:[ :]*\-[ :]*)+))+)\s*$/", $line, $matches):
if ($this->isBlock('table')) {
$block[3][0][] = $block[3][2];
$block[3][2] ++;
+6 -9
View File
@@ -10,12 +10,15 @@ $editor['id'] = explode(',', $editor['id']);
<script type="text/javascript" charset="utf-8" src="<?php echo $jsRoot?>markdown/simplemde.min.js"></script>
<style>
.CodeMirror{min-height: 150px; height:150px;}
.CodeMirror-fullscreen + .editor-preview-side{display:block;}
.CodeMirror-fullscreen, .editor-preview-side{margin-bottom:40px;}
.editor-toolbar .fa-html:before{content:"HTML";}
</style>
<script language='javascript'>
var markdownEditor = <?php echo json_encode($editor);?>;
var toolbar = ["bold", "italic", "heading", "|", "quote", "unordered-list", "ordered-list", "|", "link", "image", "code", "table", "|", "preview", "side-by-side", "fullscreen", "|", "guide"];
var withchange = ["bold", "italic", "heading", "|", "quote", "unordered-list", "ordered-list", "|", "link", "image", "code", "table", "|", "preview", "side-by-side", "fullscreen", "|", "guide", {name: "html", action: function customFunction(editor){toggleEditor("html")}, className:'fa fa-exchange', title:"HTML"}];
var withchange = ["bold", "italic", "heading", "|", "quote", "unordered-list", "ordered-list", "|", "link", "image", "code", "table", "|", "preview", "side-by-side", "fullscreen", "|", "guide", {name: "html", action: function customFunction(editor){toggleEditor("html")}, className:'fa fa-html', title:"HTML"}];
$(document).ready(initMarkdown);
function initMarkdown(afterInit)
{
@@ -31,16 +34,10 @@ function initMarkdown(afterInit)
if(!window.markdownEditor) window.markdownEditor = {};
markdown = new SimpleMDE(options);
window.markdownEditor['#'] = window.markdownEditor[markdownEditorID] = markdown;
markdown.codemirror.on("focus", function()
{
window.markdownEditor[markdownEditorID].toggleSideBySide();
});
markdown.codemirror.on("focus", function(){window.markdownEditor[markdownEditorID].toggleSideBySide();});
markdown.codemirror.on("change", function()
{
if($('#' + markdownEditorID).parent().find('.editor-preview-active-side').size() == 0)
{
window.markdownEditor[markdownEditorID].toggleSideBySide();
}
if($('#' + markdownEditorID).parent().find('.editor-preview-active-side').size() == 0) window.markdownEditor[markdownEditorID].toggleSideBySide();
});
});
+2
View File
@@ -40,6 +40,8 @@ function initUeditor(afterInit)
serverUrl: '<?php echo $this->createLink('file', 'ajaxUeditorUpload', "uid=$uid")?>',
autoClearinitialContent:false,
wordCount:false,
<?php if($editorLang != 'zh-cn' and $editorLang != 'zh-tw') echo "iframeCssUrl:'',"; //When lang is zh-cn or zh-tw then load ueditor/themes/iframe.css file for font-family and size of editor.?>
enableAutoSave:false,
elementPathEnabled:false
};
$.each(editor.id, function(key, editorID)
+7 -1
View File
@@ -17,10 +17,16 @@ $(function()
})
window.editor['content'].addListener('ready', function()
{
$('div#content .edui-toolbar').append("<div class='edui-box edui-button edui-for-markdown edui-default'><button type='button' class='edui-default' onclick='toggleEditor(\"markdown\")'>Markdown</button></div>");
$('div#content .edui-toolbar').append("<div class='edui-box edui-button edui-for-markdown edui-default'><div class='edui-default' onmouseover='toggleHover(this)' onmouseout='toggleHover(this)'><div class='edui-button-wrap edui-default' style='padding-right:4px;padding-left:4px;'><div class='edui-default' onclick='toggleEditor(\"markdown\")' title='Markdown'>Markdown</div></div></div></div>");
});
})
function toggleHover(obj)
{
if($(obj).hasClass('edui-state-hover')) return $(obj).removeClass('edui-state-hover');
return $(obj).addClass('edui-state-hover');
}
function toggleEditor(type)
{
if(type == 'html')
+201
View File
@@ -0,0 +1,201 @@
SET ISO8859-1
TRY esianrtolcdugmphbyfvkwzESIANRTOLCDUGMPHBYFVKWZ'
NOSUGGEST !
# ordinal numbers
COMPOUNDMIN 1
# only in compounds: 1th, 2th, 3th
ONLYINCOMPOUND c
# compound rules:
# 1. [0-9]*1[0-9]th (10th, 11th, 12th, 56714th, etc.)
# 2. [0-9]*[02-9](1st|2nd|3rd|[4-9]th) (21st, 22nd, 123rd, 1234th, etc.)
COMPOUNDRULE 2
COMPOUNDRULE n*1t
COMPOUNDRULE n*mp
WORDCHARS 0123456789
PFX A Y 1
PFX A 0 re .
PFX I Y 1
PFX I 0 in .
PFX U Y 1
PFX U 0 un .
PFX C Y 1
PFX C 0 de .
PFX E Y 1
PFX E 0 dis .
PFX F Y 1
PFX F 0 con .
PFX K Y 1
PFX K 0 pro .
SFX V N 2
SFX V e ive e
SFX V 0 ive [^e]
SFX N Y 3
SFX N e ion e
SFX N y ication y
SFX N 0 en [^ey]
SFX X Y 3
SFX X e ions e
SFX X y ications y
SFX X 0 ens [^ey]
SFX H N 2
SFX H y ieth y
SFX H 0 th [^y]
SFX Y Y 1
SFX Y 0 ly .
SFX G Y 2
SFX G e ing e
SFX G 0 ing [^e]
SFX J Y 2
SFX J e ings e
SFX J 0 ings [^e]
SFX D Y 4
SFX D 0 d e
SFX D y ied [^aeiou]y
SFX D 0 ed [^ey]
SFX D 0 ed [aeiou]y
SFX T N 4
SFX T 0 st e
SFX T y iest [^aeiou]y
SFX T 0 est [aeiou]y
SFX T 0 est [^ey]
SFX R Y 4
SFX R 0 r e
SFX R y ier [^aeiou]y
SFX R 0 er [aeiou]y
SFX R 0 er [^ey]
SFX Z Y 4
SFX Z 0 rs e
SFX Z y iers [^aeiou]y
SFX Z 0 ers [aeiou]y
SFX Z 0 ers [^ey]
SFX S Y 4
SFX S y ies [^aeiou]y
SFX S 0 s [aeiou]y
SFX S 0 es [sxzh]
SFX S 0 s [^sxzhy]
SFX P Y 3
SFX P y iness [^aeiou]y
SFX P 0 ness [aeiou]y
SFX P 0 ness [^y]
SFX M Y 1
SFX M 0 's .
SFX B Y 3
SFX B 0 able [^aeiou]
SFX B 0 able ee
SFX B e able [^aeiou]e
SFX L Y 1
SFX L 0 ment .
REP 88
REP a ei
REP ei a
REP a ey
REP ey a
REP ai ie
REP ie ai
REP are air
REP are ear
REP are eir
REP air are
REP air ere
REP ere air
REP ere ear
REP ere eir
REP ear are
REP ear air
REP ear ere
REP eir are
REP eir ere
REP ch te
REP te ch
REP ch ti
REP ti ch
REP ch tu
REP tu ch
REP ch s
REP s ch
REP ch k
REP k ch
REP f ph
REP ph f
REP gh f
REP f gh
REP i igh
REP igh i
REP i uy
REP uy i
REP i ee
REP ee i
REP j di
REP di j
REP j gg
REP gg j
REP j ge
REP ge j
REP s ti
REP ti s
REP s ci
REP ci s
REP k cc
REP cc k
REP k qu
REP qu k
REP kw qu
REP o eau
REP eau o
REP o ew
REP ew o
REP oo ew
REP ew oo
REP ew ui
REP ui ew
REP oo ui
REP ui oo
REP ew u
REP u ew
REP oo u
REP u oo
REP u oe
REP oe u
REP u ieu
REP ieu u
REP ue ew
REP ew ue
REP uff ough
REP oo ieu
REP ieu oo
REP ier ear
REP ear ier
REP ear air
REP air ear
REP w qu
REP qu w
REP z ss
REP ss z
REP shun tion
REP shun sion
REP shun cion
File diff suppressed because it is too large Load Diff
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because it is too large Load Diff

After

Width:  |  Height:  |  Size: 434 KiB

Binary file not shown.
Binary file not shown.
Binary file not shown.
+3 -3
View File
File diff suppressed because one or more lines are too long
@@ -1,43 +0,0 @@
.jd img{
background:transparent url(images/jxface2.gif?v=1.1) no-repeat scroll left top;
cursor:pointer;width:35px;height:35px;display:block;
}
.pp img{
background:transparent url(images/fface.gif?v=1.1) no-repeat scroll left top;
cursor:pointer;width:25px;height:25px;display:block;
}
.ldw img{
background:transparent url(images/wface.gif?v=1.1) no-repeat scroll left top;
cursor:pointer;width:35px;height:35px;display:block;
}
.tsj img{
background:transparent url(images/tface.gif?v=1.1) no-repeat scroll left top;
cursor:pointer;width:35px;height:35px;display:block;
}
.cat img{
background:transparent url(images/cface.gif?v=1.1) no-repeat scroll left top;
cursor:pointer;width:35px;height:35px;display:block;
}
.bb img{
background:transparent url(images/bface.gif?v=1.1) no-repeat scroll left top;
cursor:pointer;width:35px;height:35px;display:block;
}
.youa img{
background:transparent url(images/yface.gif?v=1.1) no-repeat scroll left top;
cursor:pointer;width:35px;height:35px;display:block;
}
.smileytable td {height: 37px;}
#tabPanel{margin-left:5px;overflow: hidden;}
#tabContent {float:left;background:#FFFFFF;}
#tabContent div{display: none;width:480px;overflow:hidden;}
#tabIconReview.show{left:17px;display:block;}
.menuFocus{background:#ACCD3C;}
.menuDefault{background:#FFFFFF;}
#tabIconReview{position:absolute;left:406px;left:398px \9;top:41px;z-index:65533;width:90px;height:76px;}
img.review{width:90px;height:76px;border:2px solid #9cb945;background:#FFFFFF;background-position:center;background-repeat:no-repeat;}
.wrapper .tabbody{position:relative;float:left;clear:both;padding:10px;width: 95%;}
.tabbody table{width: 100%;}
.tabbody td{border:1px solid #BAC498;}
.tabbody td span{display: block;zoom:1;padding:0 4px;}
@@ -1,54 +0,0 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="robots" content="noindex, nofollow"/>
<script type="text/javascript" src="../internal.js"></script>
<link rel="stylesheet" type="text/css" href="emotion.css">
</head>
<body>
<div id="tabPanel" class="wrapper">
<div id="tabHeads" class="tabhead">
<span><var id="lang_input_choice"></var></span>
<span><var id="lang_input_Tuzki"></var></span>
<span><var id="lang_input_lvdouwa"></var></span>
<span><var id="lang_input_BOBO"></var></span>
<span><var id="lang_input_babyCat"></var></span>
<span><var id="lang_input_bubble"></var></span>
<span><var id="lang_input_youa"></var></span>
</div>
<div id="tabBodys" class="tabbody">
<div id="tab0"></div>
<div id="tab1"></div>
<div id="tab2"></div>
<div id="tab3"></div>
<div id="tab4"></div>
<div id="tab5"></div>
<div id="tab6"></div>
</div>
</div>
<div id="tabIconReview">
<img id='faceReview' class='review' src="../../themes/default/images/spacer.gif"/>
</div>
<script type="text/javascript" src="emotion.js"></script>
<script type="text/javascript">
var emotion = {
tabNum:7, //切换面板数量
SmilmgName:{ tab0:['j_00', 84], tab1:['t_00', 40], tab2:['w_00', 52], tab3:['B_00', 63], tab4:['C_00', 20], tab5:['i_f', 50], tab6:['y_00', 40] }, //图片前缀名
imageFolders:{ tab0:'jx2/', tab1:'tsj/', tab2:'ldw/', tab3:'bobo/', tab4:'babycat/', tab5:'face/', tab6:'youa/'}, //图片对应文件夹路径
imageCss:{tab0:'jd', tab1:'tsj', tab2:'ldw', tab3:'bb', tab4:'cat', tab5:'pp', tab6:'youa'}, //图片css类名
imageCssOffset:{tab0:35, tab1:35, tab2:35, tab3:35, tab4:35, tab5:25, tab6:35}, //图片偏移
SmileyInfor:{
tab0:['Kiss', 'Love', 'Yeah', '啊!', '背扭', '顶', '抖胸', '88', '汗', '瞌睡', '鲁拉', '拍砖', '揉脸', '生日快乐', '大笑', '瀑布汗~', '惊讶', '臭美', '傻笑', '抛媚眼', '发怒', '打酱油', '俯卧撑', '气愤', '?', '吻', '怒', '胜利', 'HI', 'KISS', '不说', '不要', '扯花', '大心', '顶', '大惊', '飞吻', '鬼脸', '害羞', '口水', '狂哭', '来', '发财了', '吃西瓜', '套牢', '害羞', '庆祝', '我来了', '敲打', '晕了', '胜利', '臭美', '被打了', '贪吃', '迎接', '酷', '微笑', '亲吻', '调皮', '惊恐', '耍酷', '发火', '害羞', '汗水', '大哭', '', '加油', '困', '你NB', '晕倒', '开心', '偷笑', '大哭', '滴汗', '叹气', '超赞', '??', '飞吻', '天使', '撒花', '生气', '被砸', '吓傻', '随意吐'],
tab1:['Kiss', 'Love', 'Yeah', '啊!', '背扭', '顶', '抖胸', '88', '汗', '瞌睡', '鲁拉', '拍砖', '揉脸', '生日快乐', '摊手', '睡觉', '瘫坐', '无聊', '星星闪', '旋转', '也不行', '郁闷', '正Music', '抓墙', '撞墙至死', '歪头', '戳眼', '飘过', '互相拍砖', '砍死你', '扔桌子', '少林寺', '什么?', '转头', '我爱牛奶', '我踢', '摇晃', '晕厥', '在笼子里', '震荡'],
tab2:['大笑', '瀑布汗~', '惊讶', '臭美', '傻笑', '抛媚眼', '发怒', '我错了', 'money', '气愤', '挑逗', '吻', '怒', '胜利', '委屈', '受伤', '说啥呢?', '闭嘴', '不', '逗你玩儿', '飞吻', '眩晕', '魔法', '我来了', '睡了', '我打', '闭嘴', '打', '打晕了', '刷牙', '爆揍', '炸弹', '倒立', '刮胡子', '邪恶的笑', '不要不要', '爱恋中', '放大仔细看', '偷窥', '超高兴', '晕', '松口气', '我跑', '享受', '修养', '哭', '汗', '啊~', '热烈欢迎', '打酱油', '俯卧撑', '?'],
tab3:['HI', 'KISS', '不说', '不要', '扯花', '大心', '顶', '大惊', '飞吻', '鬼脸', '害羞', '口水', '狂哭', '来', '泪眼', '流泪', '生气', '吐舌', '喜欢', '旋转', '再见', '抓狂', '汗', '鄙视', '拜', '吐血', '嘘', '打人', '蹦跳', '变脸', '扯肉', '吃To', '吃花', '吹泡泡糖', '大变身', '飞天舞', '回眸', '可怜', '猛抽', '泡泡', '苹果', '亲', '', '骚舞', '烧香', '睡', '套娃娃', '捅捅', '舞倒', '西红柿', '爱慕', '摇', '摇摆', '杂耍', '招财', '被殴', '被球闷', '大惊', '理想', '欧打', '呕吐', '碎', '吐痰'],
tab4:['发财了', '吃西瓜', '套牢', '害羞', '庆祝', '我来了', '敲打', '晕了', '胜利', '臭美', '被打了', '贪吃', '迎接', '酷', '顶', '幸运', '爱心', '躲', '送花', '选择'],
tab5:['微笑', '亲吻', '调皮', '惊讶', '耍酷', '发火', '害羞', '汗水', '大哭', '得意', '鄙视', '困', '夸奖', '晕倒', '疑问', '媒婆', '狂吐', '青蛙', '发愁', '亲吻', '', '爱心', '心碎', '玫瑰', '礼物', '哭', '奸笑', '可爱', '得意', '呲牙', '暴汗', '楚楚可怜', '困', '哭', '生气', '惊讶', '口水', '彩虹', '夜空', '太阳', '钱钱', '灯泡', '咖啡', '蛋糕', '音乐', '爱', '胜利', '赞', '鄙视', 'OK'],
tab6:['男兜', '女兜', '开心', '乖乖', '偷笑', '大笑', '抽泣', '大哭', '无奈', '滴汗', '叹气', '狂晕', '委屈', '超赞', '??', '疑问', '飞吻', '天使', '撒花', '生气', '被砸', '口水', '泪奔', '吓傻', '吐舌头', '点头', '随意吐', '旋转', '困困', '鄙视', '狂顶', '篮球', '再见', '欢迎光临', '恭喜发财', '稍等', '我在线', '恕不议价', '库房有货', '货在路上']
}
};
</script>
</body>
</html>
-186
View File
@@ -1,186 +0,0 @@
window.onload = function () {
editor.setOpt({
emotionLocalization:false
});
emotion.SmileyPath = editor.options.emotionLocalization === true ? 'images/' : "http://img.baidu.com/hi/";
emotion.SmileyBox = createTabList( emotion.tabNum );
emotion.tabExist = createArr( emotion.tabNum );
initImgName();
initEvtHandler( "tabHeads" );
};
function initImgName() {
for ( var pro in emotion.SmilmgName ) {
var tempName = emotion.SmilmgName[pro],
tempBox = emotion.SmileyBox[pro],
tempStr = "";
if ( tempBox.length ) return;
for ( var i = 1; i <= tempName[1]; i++ ) {
tempStr = tempName[0];
if ( i < 10 ) tempStr = tempStr + '0';
tempStr = tempStr + i + '.gif';
tempBox.push( tempStr );
}
}
}
function initEvtHandler( conId ) {
var tabHeads = $G( conId );
for ( var i = 0, j = 0; i < tabHeads.childNodes.length; i++ ) {
var tabObj = tabHeads.childNodes[i];
if ( tabObj.nodeType == 1 ) {
domUtils.on( tabObj, "click", (function ( index ) {
return function () {
switchTab( index );
};
})( j ) );
j++;
}
}
switchTab( 0 );
$G( "tabIconReview" ).style.display = 'none';
}
function InsertSmiley( url, evt ) {
var obj = {
src:editor.options.emotionLocalization ? editor.options.UEDITOR_HOME_URL + "dialogs/emotion/" + url : url
};
obj._src = obj.src;
editor.execCommand( 'insertimage', obj );
if ( !evt.ctrlKey ) {
dialog.popup.hide();
}
}
function switchTab( index ) {
autoHeight( index );
if ( emotion.tabExist[index] == 0 ) {
emotion.tabExist[index] = 1;
createTab( 'tab' + index );
}
//获取呈现元素句柄数组
var tabHeads = $G( "tabHeads" ).getElementsByTagName( "span" ),
tabBodys = $G( "tabBodys" ).getElementsByTagName( "div" ),
i = 0, L = tabHeads.length;
//隐藏所有呈现元素
for ( ; i < L; i++ ) {
tabHeads[i].className = "";
tabBodys[i].style.display = "none";
}
//显示对应呈现元素
tabHeads[index].className = "focus";
tabBodys[index].style.display = "block";
}
function autoHeight( index ) {
var iframe = dialog.getDom( "iframe" ),
parent = iframe.parentNode.parentNode;
switch ( index ) {
case 0:
iframe.style.height = "380px";
parent.style.height = "392px";
break;
case 1:
iframe.style.height = "220px";
parent.style.height = "232px";
break;
case 2:
iframe.style.height = "260px";
parent.style.height = "272px";
break;
case 3:
iframe.style.height = "300px";
parent.style.height = "312px";
break;
case 4:
iframe.style.height = "140px";
parent.style.height = "152px";
break;
case 5:
iframe.style.height = "260px";
parent.style.height = "272px";
break;
case 6:
iframe.style.height = "230px";
parent.style.height = "242px";
break;
default:
}
}
function createTab( tabName ) {
var faceVersion = "?v=1.1", //版本号
tab = $G( tabName ), //获取将要生成的Div句柄
imagePath = emotion.SmileyPath + emotion.imageFolders[tabName], //获取显示表情和预览表情的路径
positionLine = 11 / 2, //中间数
iWidth = iHeight = 35, //图片长宽
iColWidth = 3, //表格剩余空间的显示比例
tableCss = emotion.imageCss[tabName],
cssOffset = emotion.imageCssOffset[tabName],
textHTML = ['<table class="smileytable">'],
i = 0, imgNum = emotion.SmileyBox[tabName].length, imgColNum = 11, faceImage,
sUrl, realUrl, posflag, offset, infor;
for ( ; i < imgNum; ) {
textHTML.push( '<tr>' );
for ( var j = 0; j < imgColNum; j++, i++ ) {
faceImage = emotion.SmileyBox[tabName][i];
if ( faceImage ) {
sUrl = imagePath + faceImage + faceVersion;
realUrl = imagePath + faceImage;
posflag = j < positionLine ? 0 : 1;
offset = cssOffset * i * (-1) - 1;
infor = emotion.SmileyInfor[tabName][i];
textHTML.push( '<td class="' + tableCss + '" border="1" width="' + iColWidth + '%" style="border-collapse:collapse;" align="center" bgcolor="transparent" onclick="InsertSmiley(\'' + realUrl.replace( /'/g, "\\'" ) + '\',event)" onmouseover="over(this,\'' + sUrl + '\',\'' + posflag + '\')" onmouseout="out(this)">' );
textHTML.push( '<span>' );
textHTML.push( '<img style="background-position:left ' + offset + 'px;" title="' + infor + '" src="' + emotion.SmileyPath + (editor.options.emotionLocalization ? '0.gif" width="' : 'default/0.gif" width="') + iWidth + '" height="' + iHeight + '"></img>' );
textHTML.push( '</span>' );
} else {
textHTML.push( '<td width="' + iColWidth + '%" bgcolor="#FFFFFF">' );
}
textHTML.push( '</td>' );
}
textHTML.push( '</tr>' );
}
textHTML.push( '</table>' );
textHTML = textHTML.join( "" );
tab.innerHTML = textHTML;
}
function over( td, srcPath, posFlag ) {
td.style.backgroundColor = "#ACCD3C";
$G( 'faceReview' ).style.backgroundImage = "url(" + srcPath + ")";
if ( posFlag == 1 ) $G( "tabIconReview" ).className = "show";
$G( "tabIconReview" ).style.display = 'block';
}
function out( td ) {
td.style.backgroundColor = "transparent";
var tabIconRevew = $G( "tabIconReview" );
tabIconRevew.className = "";
tabIconRevew.style.display = 'none';
}
function createTabList( tabNum ) {
var obj = {};
for ( var i = 0; i < tabNum; i++ ) {
obj["tab" + i] = [];
}
return obj;
}
function createArr( tabNum ) {
var arr = [];
for ( var i = 0; i < tabNum; i++ ) {
arr[i] = 0;
}
return arr;
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 43 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 216 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

-89
View File
@@ -1,89 +0,0 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<script type="text/javascript" src="../internal.js"></script>
<style type="text/css">
.content{width:530px; height: 350px;margin: 10px auto;}
.content table{width: 100%}
.content table td{vertical-align: middle;}
#address{width:220px;height:21px;background: #FFF;border:1px solid #d7d7d7; line-height: 21px;}
</style>
<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=false"></script>
</head>
<body>
<div class="content">
<table>
<tr>
<td><label for="address"><var id="lang_input_address"></var></label></td>
<td><input id="address" type="text" /></td>
<td><a id="doSearch" href="javascript:void(0)" class="button"><var id="lang_input_search"></var></a></td>
</tr>
</table>
<div id="container" style="width: 100%; height: 340px;margin: 5px auto; border: 1px solid gray;"></div>
</div>
<script type="text/javascript">
domUtils.on(window,"load",function(){
var map = new google.maps.Map(document.getElementById('container'), {
zoom: 3,
streetViewControl: false,
scaleControl: true,
mapTypeId: google.maps.MapTypeId.ROADMAP
});
var imgcss;
var marker = new google.maps.Marker({
map: map,
draggable: true
});
function doSearch(){
var address = document.getElementById('address').value;
var geocoder = new google.maps.Geocoder();
geocoder.geocode( { 'address': address}, function (results, status) {
if (status == google.maps.GeocoderStatus.OK) {
var bounds = results[0].geometry.viewport;
map.fitBounds(bounds);
marker.setPosition(results[0].geometry.location);
marker.setTitle(address);
} else alert(lang.searchError);
});
}
$G('address').onkeydown = function (evt){
evt = evt || event;
if (evt.keyCode == 13) {
doSearch();
}
};
$G("doSearch").onclick = doSearch;
dialog.onok = function (){
var center = map.getCenter();
var point = marker.getPosition();
var url = "http://maps.googleapis.com/maps/api/staticmap?center=" + center.lat() + ',' + center.lng() + "&zoom=" + map.zoom + "&size=520x340&maptype=" + map.getMapTypeId() + "&markers=" + point.lat() + ',' + point.lng() + "&sensor=false";
editor.execCommand('inserthtml', '<img width="520" height="340" src="' + url + '"' + (imgcss ? ' style="' + imgcss + '"' :'') + '/>');
};
function getPars(str,par){
var reg = new RegExp(par+"=((\\d+|[.,])*)","g");
return reg.exec(str)[1];
}
var img = editor.selection.getRange().getClosedNode();
if(img && img.src.indexOf("http://maps.googleapis.com/maps/api/staticmap")!=-1){
var url = img.getAttribute("src");
var centers = getPars(url,"center").split(",");
point = new google.maps.LatLng(Number(centers[0]),Number(centers[1]));
map.setCenter(point);
map.setZoom(Number(getPars(url,"zoom")));
centers = getPars(url,"markers").split(",");
marker.setPosition(new google.maps.LatLng(Number(centers[0]),Number(centers[1])));
imgcss = img.style.cssText;
}else{
setTimeout(function(){
doSearch();
},30)
}
});
</script>
</body>
</html>
-135
View File
@@ -1,135 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<script type="text/javascript" src="../internal.js"></script>
<script type="text/javascript" src="http://api.map.baidu.com/api?v=1.1&services=true"></script>
<style type="text/css">
.content{width:530px; height: 350px;margin: 10px auto;}
.content table{width: 100%}
.content table td{vertical-align: middle;}
#city,#address{height:21px;background: #FFF;border:1px solid #d7d7d7; line-height: 21px;}
#city{width:60px}
#address{width:130px}
#is_dynamic_label span{vertical-align:middle;margin: 3px 0px 3px 3px;}
#is_dynamic_label input{vertical-align:middle;margin: 3px 3px 3px 50px;}
</style>
</head>
<body>
<div class="content">
<table>
<tr>
<td><var id="lang_city"></var>:</td>
<td><input id="city" type="text" /></td>
<td><var id="lang_address"></var>:</td>
<td><input id="address" type="text" value="" /></td>
<td><a href="javascript:doSearch()" class="button"><var id="lang_search"></var></a></td>
<td><label id="is_dynamic_label" for="is_dynamic"><input id="is_dynamic" type="checkbox" name="is_dynamic" /><span><var id="lang_dynamicmap"></var></span></label></td>
</tr>
</table>
<div style="width:100%;height:340px;margin:5px auto;border:1px solid gray" id="container"></div>
</div>
<script type="text/javascript">
var map = new BMap.Map("container"),marker,point,styleStr;
map.enableScrollWheelZoom();
map.enableContinuousZoom();
function doSearch(){
if (!document.getElementById('city').value) {
alert(lang.cityMsg);
return;
}
var search = new BMap.LocalSearch(document.getElementById('city').value, {
onSearchComplete: function (results){
if (results && results.getNumPois()) {
var points = [];
for (var i=0; i<results.getCurrentNumPois(); i++) {
points.push(results.getPoi(i).point);
}
if (points.length > 1) {
map.setViewport(points);
} else {
map.centerAndZoom(points[0], 13);
}
point = map.getCenter();
marker.setPoint(point);
} else {
alert(lang.errorMsg);
}
}
});
search.search(document.getElementById('address').value || document.getElementById('city').value);
}
//获得参数
function getPars(str,par){
var reg = new RegExp(par+"=((\\d+|[.,])*)","g");
return reg.exec(str)[1];
}
function init(){
var mapNode = editor.selection.getRange().getClosedNode(),
isMapImg = mapNode && /api[.]map[.]baidu[.]com/ig.test(mapNode.getAttribute("src")),
isMapIframe = mapNode && domUtils.hasClass(mapNode, 'ueditor_baidumap');
if(isMapImg || isMapIframe){
var url, centerPos, markerPos;
if(isMapIframe) {
url = decodeURIComponent(mapNode.getAttribute("src"));
$G('is_dynamic').checked = true;
styleStr = mapNode.style.cssText;
} else {
url = mapNode.getAttribute("src");
styleStr = mapNode.style.cssText;
}
centerPos = getPars(url,"center").split(",");
markerPos = getPars(url, "markers").split(",");
point = new BMap.Point(Number(centerPos[0]),Number(centerPos[1]));
marker = new BMap.Marker(new BMap.Point(Number(markerPos[0]), Number(markerPos[1])));
map.addControl(new BMap.NavigationControl());
map.centerAndZoom(point, Number(getPars(url,"zoom")));
}else{
point = new BMap.Point(116.404, 39.915); // 创建点坐标
marker = new BMap.Marker(point);
map.addControl(new BMap.NavigationControl());
map.centerAndZoom(point, 10); // 初始化地图,设置中心点坐标和地图级别。
}
marker.enableDragging();
map.addOverlay(marker);
}
init();
document.getElementById('address').onkeydown = function (evt){
evt = evt || event;
if (evt.keyCode == 13) {
doSearch();
}
};
dialog.onok = function (){
var center = map.getCenter();
var zoom = map.zoomLevel;
var size = map.getSize();
var mapWidth = size.width;
var mapHeight = size.height;
var point = marker.getPoint();
if($G('is_dynamic').checked) {
var URL = editor.options.UEDITOR_HOME_URL,
url = [URL + (/\/$/.test(URL) ? '':'/') + "dialogs/map/show.html" +
'#center=' + center.lng + ',' + center.lat,
'&zoom=' + zoom,
'&width=' + mapWidth,
'&height=' + mapHeight,
'&markers=' + point.lng + ',' + point.lat,
'&markerStyles=' + 'l,A'].join('');
editor.execCommand('inserthtml', '<iframe class="ueditor_baidumap" src="' + url + '"' + (styleStr ? ' style="' + styleStr + '"' :'') + ' frameborder="0" width="' + (mapWidth+4) + '" height="' + (mapHeight+4) + '"></iframe>');
} else {
var url = "http://api.map.baidu.com/staticimage?center=" + center.lng + ',' + center.lat +
"&zoom=" + zoom + "&width=" + size.width + '&height=' + size.height + "&markers=" + point.lng + ',' + point.lat;
editor.execCommand('inserthtml', '<img width="'+ size.width +'"height="'+ size.height +'" src="' + url + '"' + (styleStr ? ' style="' + styleStr + '"' :'') + '/>');
}
};
document.getElementById("address").focus();
</script>
</body>
</html>
-118
View File
@@ -1,118 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8"/>
<meta name="keywords" content="百度地图,百度地图API,百度地图自定义工具,百度地图所见即所得工具"/>
<meta name="description" content="百度地图API自定义地图,帮助用户在可视化操作下生成百度地图"/>
<title>百度地图API自定义地图</title>
<!--引用百度地图API-->
<style type="text/css">
html, body {
margin: 0;
padding: 0;
overflow: hidden;
}
</style>
<script type="text/javascript" src="http://api.map.baidu.com/api?key=&v=1.1&services=true"></script>
</head>
<body onload="initMap();">
<!--百度地图容器-->
<div style="width:697px;height:550px;border:#ccc solid 1px;" id="dituContent"></div>
</body>
<script type="text/javascript">
function getParam(name) {
return location.href.match(new RegExp('[?#&]' + name + '=([^?#&]+)', 'i')) ? RegExp.$1 : '';
}
var map, marker;
var centerParam = getParam('center');
var zoomParam = getParam('zoom');
var widthParam = getParam('width');
var heightParam = getParam('height');
var markersParam = getParam('markers');
var markerStylesParam = getParam('markerStyles');
//创建和初始化地图函数:
function initMap() {
// [FF]切换模式后报错
if (!window.BMap) {
return;
}
var dituContent = document.getElementById('dituContent');
dituContent.style.width = widthParam + 'px';
dituContent.style.height = heightParam + 'px';
createMap();//创建地图
setMapEvent();//设置地图事件
addMapControl();//向地图添加控件
// 创建标注
var markersArr = markersParam.split(',');
var point = new BMap.Point(markersArr[0], markersArr[1]);
marker = new BMap.Marker(point);
marker.enableDragging();
map.addOverlay(marker); // 将标注添加到地图中
if(parent.editor && parent.document.body.contentEditable=="true") { //在编辑状态下
setMapListener();//地图改变修改外层的iframe标签src属性
}
}
//创建地图函数:
function createMap() {
map = new BMap.Map("dituContent");//在百度地图容器中创建一个地图
var centerArr = centerParam.split(',');
var point = new BMap.Point(parseFloat(centerArr[0]), parseFloat(centerArr[1]));//定义一个中心点坐标
map.centerAndZoom(point, parseInt(zoomParam));//设定地图的中心点和坐标并将地图显示在地图容器中
}
//地图事件设置函数:
function setMapEvent() {
map.enableDragging();//启用地图拖拽事件,默认启用(可不写)
map.enableScrollWheelZoom();//启用地图滚轮放大缩小
map.enableDoubleClickZoom();//启用鼠标双击放大,默认启用(可不写)
map.enableKeyboard();//启用键盘上下左右键移动地图
}
//地图控件添加函数:
function addMapControl() {
//向地图中添加缩放控件
var ctrl_nav = new BMap.NavigationControl({anchor: BMAP_ANCHOR_TOP_LEFT, type: BMAP_NAVIGATION_CONTROL_LARGE});
map.addControl(ctrl_nav);
//向地图中添加缩略图控件
var ctrl_ove = new BMap.OverviewMapControl({anchor: BMAP_ANCHOR_BOTTOM_RIGHT, isOpen: 1});
map.addControl(ctrl_ove);
//向地图中添加比例尺控件
var ctrl_sca = new BMap.ScaleControl({anchor: BMAP_ANCHOR_BOTTOM_LEFT});
map.addControl(ctrl_sca);
}
function setMapListener() {
var editor = parent.editor, containerIframe,
iframes = parent.document.getElementsByTagName('iframe');
for (var key in iframes) {
if (iframes[key].contentWindow == window) {
containerIframe = iframes[key];
break;
}
}
if (containerIframe) {
map.addEventListener('moveend', mapListenerHandler);
map.addEventListener('zoomend', mapListenerHandler);
marker.addEventListener('dragend', mapListenerHandler);
}
function mapListenerHandler() {
var zoom = map.getZoom(),
center = map.getCenter(),
marker = window.marker.getPoint();
containerIframe.src = containerIframe.src.
replace(new RegExp('([?#&])center=([^?#&]+)', 'i'), '$1center=' + center.lng + ',' + center.lat).
replace(new RegExp('([?#&])markers=([^?#&]+)', 'i'), '$1markers=' + marker.lng + ',' + marker.lat).
replace(new RegExp('([?#&])zoom=([^?#&]+)', 'i'), '$1zoom=' + zoom);
editor.fireEvent('saveScene');
}
}
</script>
</html>
-53
View File
@@ -1,53 +0,0 @@
<!DOCTYPE>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<script type="text/javascript" src="../internal.js"></script>
<style type="text/css">
.wrapper{width: 540px; margin: 10px auto;}
#appShow {border: 1px solid #ddd;}
.errorMsg{font-size: 13px;margin: 10px;color: #dd0000}
</style>
</head>
<body>
<div class="wrapper">
<div id="appShow"></div>
</div>
<script type="text/javascript">
//此处配置您在百度上申请到的appkey。
var apikey = editor.options.webAppKey;
if ( apikey && apikey.length == 24 ) {
var searchConfig = {
container:'appShow', //容器ID
tips:"", //该值用于自动清空
search:1, //是否显示搜索框
ps:12, //每页显示的条数
suggest:1, //是否开启搜索自动完成
limit:0, //搜索结果显示条数,0表示无限制
searchNow:0, //是否在初始化完成时立即搜索
apikey:apikey, //每人得
pager:1,
cid:7134562,
outputHTML:1
},baiduApp;
function clickCallback() {
baiduApp.addEventListener( 'getAppHTML', function ( e, data ) {
var url = 'http://app.baidu.com/app/enter?appid='+data.data['app_id'] +'&tn=app_canvas&app_spce_id=1&apikey='+apikey+'&api_key=' + apikey;
editor.execCommand( "webapp", {url:url,width:data.uniWidth,height:data.uniHeight+60,logo:data.data['app_logo'],title:data.data['app_name']});
dialog.close();
} );
}
var script = document.createElement( "script" );
script.type = "text/javascript";
script.src = "http://app.baidu.com/appweb/api/search?auto=yes&container=container&apikey=" + apikey + "&instanceName=baiduApp&callback=clickCallback&config=searchConfig";
document.body.appendChild( script );
} else {
$G( "appShow" ).innerHTML = "<p class='errorMsg'>"+lang.tip1+"<a title='"+lang.anthorApi+"' href='http://app.baidu.com/static/cms/getapikey.html' target='_blank'>"+lang.applyFor+"</a></p><p class='errorMsg'>"+lang.tip2+"</p>" ;
}
</script>
</body>
</html>
+2 -2
View File
@@ -13,10 +13,10 @@ UE.I18N['en'] = {
'pasteplain':'PastePlain', 'selectall':'SelectAll', 'print':'Print', 'preview':'Preview',
'horizontal':'Horizontal', 'removeformat':'RemoveFormat', 'time':'Time', 'date':'Date',
'unlink':'Unlink', 'insertrow':'InsertRow', 'insertcol':'InsertCol', 'mergeright':'MergeRight', 'mergedown':'MergeDown',
'deleterow':'DeleteRow', 'deletecol':'DeleteCol', 'splittorows':'SplitToRows','insertcode':'insert code',
'deleterow':'DeleteRow', 'deletecol':'DeleteCol', 'splittorows':'SplitToRows','insertcode':'code',
'splittocols':'SplitToCols', 'splittocells':'SplitToCells','deletecaption':'DeleteCaption','inserttitle':'InsertTitle',
'mergecells':'MergeCells', 'deletetable':'DeleteTable', 'cleardoc':'Clear', 'insertparagraphbeforetable':"InsertParagraphBeforeTable",
'fontfamily':'FontFamily', 'fontsize':'FontSize', 'paragraph':'Paragraph','simpleupload':'Single Image','insertimage':'Multi Image','edittable':'Edit Table', 'edittd':'Edit Td','link':'Link',
'fontfamily':'Family', 'fontsize':'Size', 'paragraph':'Paragraph','simpleupload':'Single Image','insertimage':'Multi Image','edittable':'Edit Table', 'edittd':'Edit Td','link':'Link',
'emotion':'Emotion', 'spechars':'Spechars', 'searchreplace':'SearchReplace', 'map':'BaiduMap', 'gmap':'GoogleMap',
'insertvideo':'Video', 'help':'Help', 'justifyleft':'JustifyLeft', 'justifyright':'JustifyRight', 'justifycenter':'JustifyCenter',
'justifyjustify':'Justify', 'forecolor':'FontColor', 'backcolor':'BackColor', 'insertorderedlist':'OL',
Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB

+669
View File
@@ -0,0 +1,669 @@
/**
* Created with JetBrains PhpStorm.
* User: taoqili
* Date: 12-6-12
* Time: 下午5:02
* To change this template use File | Settings | File Templates.
*/
UE.I18N['zh-tw'] = {
'labelMap':{
'anchor':'錨點', 'undo':'撤銷', 'redo':'重做', 'bold':'加粗', 'indent':'首行縮進', 'snapscreen':'截圖',
'italic':'斜體', 'underline':'下劃線', 'strikethrough':'刪除綫', 'subscript':'下標','fontborder':'字元邊框',
'superscript':'上標', 'formatmatch':'格式刷', 'source':'原始碼', 'blockquote':'引用',
'pasteplain':'純文字檔案粘貼模式', 'selectall':'全選', 'print':'打印', 'preview':'預覽',
'horizontal':'分隔綫', 'removeformat':'清除格式', 'time':'時間', 'date':'日期',
'unlink':'取消連結', 'insertrow':'前插入行', 'insertcol':'前插入列', 'mergeright':'右合併單元格', 'mergedown':'下合併單元格',
'deleterow':'刪除行', 'deletecol':'刪除列', 'splittorows':'拆分成行',
'splittocols':'拆分成列', 'splittocells':'完全拆分單元格','deletecaption':'刪除表格標題','inserttitle':'插入標題',
'mergecells':'合併多個單元格', 'deletetable':'刪除表格', 'cleardoc':'清空文檔','insertparagraphbeforetable':"表格前插入行",'insertcode':'代碼語言',
'fontfamily':'字型', 'fontsize':'字型大小', 'paragraph':'段落格式', 'simpleupload':'單圖上傳', 'insertimage':'多圖上傳','edittable':'表格屬性','edittd':'單元格屬性', 'link':'超連結',
'emotion':'表情', 'spechars':'特殊字元', 'searchreplace':'查詢替換', 'map':'Baidu地圖', 'gmap':'Google地圖',
'insertvideo':'視頻', 'help':'幫助', 'justifyleft':'居左對齊', 'justifyright':'居右對齊', 'justifycenter':'居中對齊',
'justifyjustify':'兩端對齊', 'forecolor':'字型顏色', 'backcolor':'背景色', 'insertorderedlist':'有序列表',
'insertunorderedlist':'無序列表', 'fullscreen':'全屏', 'directionalityltr':'從左向右輸入', 'directionalityrtl':'從右向左輸入',
'rowspacingtop':'段前距', 'rowspacingbottom':'段後距', 'pagebreak':'分頁', 'insertframe':'插入Iframe', 'imagenone':'預設',
'imageleft':'左浮動', 'imageright':'右浮動', 'attachment':'附件', 'imagecenter':'居中', 'wordimage':'圖片轉存',
'lineheight':'行間距','edittip' :'編輯提示','customstyle':'自定義標題', 'autotypeset':'自動排版',
'webapp':'百度應用','touppercase':'字母大寫', 'tolowercase':'字母小寫','background':'背景','template':'模板','scrawl':'塗鴉',
'music':'音樂','inserttable':'插入表格','drafts': '從草稿箱加載', 'charts': '圖表'
},
'insertorderedlist':{
'num':'1,2,3...',
'num1':'1),2),3)...',
'num2':'(1),(2),(3)...',
'cn':'一,二,三....',
'cn1':'一),二),三)....',
'cn2':'(一),(二),(三)....',
'decimal':'1,2,3...',
'lower-alpha':'a,b,c...',
'lower-roman':'i,ii,iii...',
'upper-alpha':'A,B,C...',
'upper-roman':'I,II,III...'
},
'insertunorderedlist':{
'circle':'○ 大圓圈',
'disc':'● 小黑點',
'square':'■ 小方塊 ',
'dash' :'— 破折號',
'dot':' 。 小圓圈'
},
'paragraph':{'p':'段落', 'h1':'標題 1', 'h2':'標題 2', 'h3':'標題 3', 'h4':'標題 4', 'h5':'標題 5', 'h6':'標題 6'},
'fontfamily':{
'songti':'宋體',
'kaiti':'楷體',
'heiti':'黑體',
'lishu':'隷書',
'yahei':'微軟雅黑',
'andaleMono':'andale mono',
'arial': 'arial',
'arialBlack':'arial black',
'comicSansMs':'comic sans ms',
'impact':'impact',
'timesNewRoman':'times new roman'
},
'customstyle':{
'tc':'標題居中',
'tl':'標題居左',
'im':'強調',
'hi':'明顯強調'
},
'autoupload': {
'exceedSizeError': '檔案大小超出限制',
'exceedTypeError': '檔案格式不允許',
'jsonEncodeError': '伺服器返回格式錯誤',
'loading':"正在上傳...",
'loadError':"上傳錯誤",
'errorLoadConfig': '後端配置項沒有正常加載,上傳插件不能正常使用!'
},
'simpleupload':{
'exceedSizeError': '檔案大小超出限制',
'exceedTypeError': '檔案格式不允許',
'jsonEncodeError': '伺服器返回格式錯誤',
'loading':"正在上傳...",
'loadError':"上傳錯誤",
'errorLoadConfig': '後端配置項沒有正常加載,上傳插件不能正常使用!'
},
'elementPathTip':"元素路徑",
'wordCountTip':"字數統計",
'wordCountMsg':'當前已輸入{#count}個字元, 您還可以輸入{#leave}個字元。 ',
'wordOverFlowMsg':'<span style="color:red;">字數超出最大允許值,伺服器可能拒絶保存!</span>',
'ok':"確認",
'cancel':"取消",
'closeDialog':"關閉對話框",
'tableDrag':"表格拖動必須引入uiUtils.js檔案!",
'autofloatMsg':"工具欄浮動依賴編輯器UI,您首先需要引入UI檔案!",
'loadconfigError': '獲取後台配置項請求出錯,上傳功能將不能正常使用!',
'loadconfigFormatError': '後台配置項返回格式出錯,上傳功能將不能正常使用!',
'loadconfigHttpError': '請求後台配置項http錯誤,上傳功能將不能正常使用!',
'snapScreen_plugin':{
'browserMsg':"僅支持IE瀏覽器!",
'callBackErrorMsg':"伺服器返回數據有誤,請檢查配置項之後重試。",
'uploadErrorMsg':"截圖上傳失敗,請檢查伺服器端環境! "
},
'insertcode':{
'as3':'ActionScript 3',
'bash':'Bash/Shell',
'cpp':'C/C++',
'css':'CSS',
'cf':'ColdFusion',
'c#':'C#',
'delphi':'Delphi',
'diff':'Diff',
'erlang':'Erlang',
'groovy':'Groovy',
'html':'HTML',
'java':'Java',
'jfx':'JavaFX',
'js':'JavaScript',
'pl':'Perl',
'php':'PHP',
'plain':'Plain Text',
'ps':'PowerShell',
'python':'Python',
'ruby':'Ruby',
'scala':'Scala',
'sql':'SQL',
'vb':'Visual Basic',
'xml':'XML'
},
'confirmClear':"確定清空當前文檔麼?",
'contextMenu':{
'delete':"刪除",
'selectall':"全選",
'deletecode':"刪除代碼",
'cleardoc':"清空文檔",
'confirmclear':"確定清空當前文檔麼?",
'unlink':"刪除超連結",
'paragraph':"段落格式",
'edittable':"表格屬性",
'aligntd':"單元格對齊方式",
'aligntable':'表格對齊方式',
'tableleft':'左浮動',
'tablecenter':'居中顯示',
'tableright':'右浮動',
'edittd':"單元格屬性",
'setbordervisible':'設置表格邊線可見',
'justifyleft':'左對齊',
'justifyright':'右對齊',
'justifycenter':'居中對齊',
'justifyjustify':'兩端對齊',
'table':"表格",
'inserttable':'插入表格',
'deletetable':"刪除表格",
'insertparagraphbefore':"前插入段落",
'insertparagraphafter':'後插入段落',
'deleterow':"刪除當前行",
'deletecol':"刪除當前列",
'insertrow':"前插入行",
'insertcol':"左插入列",
'insertrownext':'後插入行',
'insertcolnext':'右插入列',
'insertcaption':'插入表格名稱',
'deletecaption':'刪除表格名稱',
'inserttitle':'插入表格標題行',
'deletetitle':'刪除表格標題行',
'inserttitlecol':'插入表格標題列',
'deletetitlecol':'刪除表格標題列',
'averageDiseRow':'平均分佈各行',
'averageDisCol':'平均分佈各列',
'mergeright':"向右合併",
'mergeleft':"向左合併",
'mergedown':"向下合併",
'mergecells':"合併單元格",
'splittocells':"完全拆分單元格",
'splittocols':"拆分成列",
'splittorows':"拆分成行",
'tablesort':'表格排序',
'enablesort':'設置表格可排序',
'disablesort':'取消表格可排序',
'reversecurrent':'逆序當前',
'orderbyasc':'按ASCII字元升序',
'reversebyasc':'按ASCII字元降序',
'orderbynum':'按數值大小升序',
'reversebynum':'按數值大小降序',
'borderbk':'邊框底紋',
'setcolor':'表格隔行變色',
'unsetcolor':'取消表格隔行變色',
'setbackground':'選區背景隔行',
'unsetbackground':'取消選區背景',
'redandblue':'紅藍相間',
'threecolorgradient':'三色漸變',
'copy':"複製(Ctrl + c)",
'copymsg': "瀏覽器不支持,請使用 'Ctrl + c'",
'paste':"粘貼(Ctrl + v)",
'pastemsg': "瀏覽器不支持,請使用 'Ctrl + v'"
},
'copymsg': "瀏覽器不支持,請使用 'Ctrl + c'",
'pastemsg': "瀏覽器不支持,請使用 'Ctrl + v'",
'anthorMsg':"連結",
'clearColor':'清空顏色',
'standardColor':'標準顏色',
'themeColor':'主題顏色',
'property':'屬性',
'default':'預設',
'modify':'修改',
'justifyleft':'左對齊',
'justifyright':'右對齊',
'justifycenter':'居中',
'justify':'預設',
'clear':'清除',
'anchorMsg':'錨點',
'delete':'刪除',
'clickToUpload':"點擊上傳",
'unset':'尚未設置語言檔案',
't_row':'行',
't_col':'列',
'more':'更多',
'pasteOpt':'粘貼選項',
'pasteSourceFormat':"保留源格式",
'tagFormat':'只保留標籤',
'pasteTextFormat':'只保留文本',
'autoTypeSet':{
'mergeLine':"合併空行",
'delLine':"清除空行",
'removeFormat':"清除格式",
'indent':"首行縮進",
'alignment':"對齊方式",
'imageFloat':"圖片浮動",
'removeFontsize':"清除字型大小",
'removeFontFamily':"清除字型",
'removeHtml':"清除冗餘HTML代碼",
'pasteFilter':"粘貼過濾",
'run':"執行",
'symbol':'符號轉換',
'bdc2sb':'全形轉半形',
'tobdc':'半形轉全形'
},
'background':{
'static':{
'lang_background_normal':'背景設置',
'lang_background_local':'在線圖片',
'lang_background_set':'選項',
'lang_background_none':'無背景色',
'lang_background_colored':'有背景色',
'lang_background_color':'顏色設置',
'lang_background_netimg':'網絡圖片',
'lang_background_align':'對齊方式',
'lang_background_position':'精確定位',
'repeatType':{'options':["居中", "橫向重複", "縱向重複", "平鋪","自定義"]}
},
'noUploadImage':"當前未上傳過任何圖片!",
'toggleSelect':"單擊可切換選中狀態\n原圖尺寸: "
},
//===============dialog i18N=======================
'insertimage':{
'static':{
'lang_tab_remote':"插入圖片", //節點
'lang_tab_upload':"本地上傳",
'lang_tab_online':"在線管理",
'lang_tab_search':"圖片搜索",
'lang_input_url':"地 址:",
'lang_input_size':"大 小:",
'lang_input_width':"寬度",
'lang_input_height':"高度",
'lang_input_border':"邊 框:",
'lang_input_vhspace':"邊 距:",
'lang_input_title':"描 述:",
'lang_input_align':'圖片浮動方式:',
'lang_imgLoading':" 圖片加載中……",
'lang_start_upload':"開始上傳",
'lock':{'title':"鎖定寬高比例"}, //屬性
'searchType':{'title':"圖片類型", 'options':["新聞", "壁紙", "表情", "頭像"]}, //select的option
'searchTxt':{'value':"請輸入搜索關鍵詞"},
'searchBtn':{'value':"百度一下"},
'searchReset':{'value':"清空搜索"},
'noneAlign':{'title':'無浮動'},
'leftAlign':{'title':'左浮動'},
'rightAlign':{'title':'右浮動'},
'centerAlign':{'title':'居中獨占一行'}
},
'uploadSelectFile':'點擊選擇圖片',
'uploadAddFile':'繼續添加',
'uploadStart':'開始上傳',
'uploadPause':'暫停上傳',
'uploadContinue':'繼續上傳',
'uploadRetry':'重試上傳',
'uploadDelete':'刪除',
'uploadTurnLeft':'向左旋轉',
'uploadTurnRight':'向右旋轉',
'uploadPreview':'預覽中',
'uploadNoPreview':'不能預覽',
'updateStatusReady': '選中_張圖片,共_KB。',
'updateStatusConfirm': '已成功上傳_張照片,_張照片上傳失敗',
'updateStatusFinish': '共_張(_KB),_張上傳成功',
'updateStatusError': ',_張上傳失敗。',
'errorNotSupport': 'WebUploader 不支持您的瀏覽器!如果你使用的是IE瀏覽器,請嘗試升級 flash 播放器。',
'errorLoadConfig': '後端配置項沒有正常加載,上傳插件不能正常使用!',
'errorExceedSize':'檔案大小超出',
'errorFileType':'檔案格式不允許',
'errorInterrupt':'檔案傳輸中斷',
'errorUploadRetry':'上傳失敗,請重試',
'errorHttp':'http請求錯誤',
'errorServerUpload':'伺服器返回出錯',
'remoteLockError':"寬高不正確,不能所定比例",
'numError':"請輸入正確的長度或者寬度值!例如:123,400",
'imageUrlError':"不允許的圖片格式或者圖片域!",
'imageLoadError':"圖片加載失敗!請檢查連結地址或網絡狀態!",
'searchRemind':"請輸入搜索關鍵詞",
'searchLoading':"圖片加載中,請稍後……",
'searchRetry':" :( ,抱歉,沒有找到圖片!請重試一次!"
},
'attachment':{
'static':{
'lang_tab_upload': '上傳附件',
'lang_tab_online': '在綫附件',
'lang_start_upload':"開始上傳",
'lang_drop_remind':"可以將檔案拖到這裡,單次最多可選100個檔案"
},
'uploadSelectFile':'點擊選擇檔案',
'uploadAddFile':'繼續添加',
'uploadStart':'開始上傳',
'uploadPause':'暫停上傳',
'uploadContinue':'繼續上傳',
'uploadRetry':'重試上傳',
'uploadDelete':'刪除',
'uploadTurnLeft':'向左旋轉',
'uploadTurnRight':'向右旋轉',
'uploadPreview':'預覽中',
'updateStatusReady': '選中_個檔案,共_KB。',
'updateStatusConfirm': '已成功上傳_個檔案,_個檔案上傳失敗',
'updateStatusFinish': '共_個(_KB),_個上傳成功',
'updateStatusError': ',_張上傳失敗。',
'errorNotSupport': 'WebUploader 不支持您的瀏覽器!如果你使用的是IE瀏覽器,請嘗試升級 flash 播放器。',
'errorLoadConfig': '後端配置項沒有正常加載,上傳插件不能正常使用!',
'errorExceedSize':'檔案大小超出',
'errorFileType':'檔案格式不允許',
'errorInterrupt':'檔案傳輸中斷',
'errorUploadRetry':'上傳失敗,請重試',
'errorHttp':'http請求錯誤',
'errorServerUpload':'伺服器返回出錯'
},
'insertvideo':{
'static':{
'lang_tab_insertV':"插入視頻",
'lang_tab_searchV':"搜索視頻",
'lang_tab_uploadV':"上傳視頻",
'lang_video_url':"視頻網址",
'lang_video_size':"視頻尺寸",
'lang_videoW':"寬度",
'lang_videoH':"高度",
'lang_alignment':"對齊方式",
'videoSearchTxt':{'value':"請輸入搜索關鍵字!"},
'videoType':{'options':["全部", "熱門", "娛樂", "搞笑", "體育", "科技", "綜藝"]},
'videoSearchBtn':{'value':"百度一下"},
'videoSearchReset':{'value':"清空結果"},
'lang_input_fileStatus':' 當前未上傳檔案',
'startUpload':{'style':"background:url(upload.png) no-repeat;"},
'lang_upload_size':"視頻尺寸",
'lang_upload_width':"寬度",
'lang_upload_height':"高度",
'lang_upload_alignment':"對齊方式",
'lang_format_advice':"建議使用mp4格式."
},
'numError':"請輸入正確的數值,如123,400",
'floatLeft':"左浮動",
'floatRight':"右浮動",
'"default"':"預設",
'block':"獨占一行",
'urlError':"輸入的視頻地址有誤,請檢查後再試!",
'loading':" &nbsp;視頻加載中,請等待……",
'clickToSelect':"點擊選中",
'goToSource':'訪問源視頻',
'noVideo':" &nbsp; &nbsp;抱歉,找不到對應的視頻,請重試!",
'browseFiles':'瀏覽檔案',
'uploadSuccess':'上傳成功!',
'delSuccessFile':'從成功隊列中移除',
'delFailSaveFile':'移除保存失敗檔案',
'statusPrompt':' 個檔案已上傳! ',
'flashVersionError':'當前Flash版本過低,請更新FlashPlayer後重試!',
'flashLoadingError':'Flash加載失敗!請檢查路徑或網絡狀態',
'fileUploadReady':'等待上傳……',
'delUploadQueue':'從上傳隊列中移除',
'limitPrompt1':'單次不能選擇超過',
'limitPrompt2':'個檔案!請重新選擇!',
'delFailFile':'移除失敗檔案',
'fileSizeLimit':'檔案大小超出限制!',
'emptyFile':'空檔案無法上傳!',
'fileTypeError':'檔案類型不允許!',
'unknownError':'未知錯誤!',
'fileUploading':'上傳中,請等待……',
'cancelUpload':'取消上傳',
'netError':'網絡錯誤',
'failUpload':'上傳失敗!',
'serverIOError':'伺服器IO錯誤!',
'noAuthority':'無權限!',
'fileNumLimit':'上傳個數限制',
'failCheck':'驗證失敗,本次上傳被跳過!',
'fileCanceling':'取消中,請等待……',
'stopUploading':'上傳已停止……',
'uploadSelectFile':'點擊選擇檔案',
'uploadAddFile':'繼續添加',
'uploadStart':'開始上傳',
'uploadPause':'暫停上傳',
'uploadContinue':'繼續上傳',
'uploadRetry':'重試上傳',
'uploadDelete':'刪除',
'uploadTurnLeft':'向左旋轉',
'uploadTurnRight':'向右旋轉',
'uploadPreview':'預覽中',
'updateStatusReady': '選中_個檔案,共_KB。',
'updateStatusConfirm': '成功上傳_個,_個失敗',
'updateStatusFinish': '共_個(_KB),_個成功上傳',
'updateStatusError': ',_張上傳失敗。',
'errorNotSupport': 'WebUploader 不支持您的瀏覽器!如果你使用的是IE瀏覽器,請嘗試升級 flash 播放器。',
'errorLoadConfig': '後端配置項沒有正常加載,上傳插件不能正常使用!',
'errorExceedSize':'檔案大小超出',
'errorFileType':'檔案格式不允許',
'errorInterrupt':'檔案傳輸中斷',
'errorUploadRetry':'上傳失敗,請重試',
'errorHttp':'http請求錯誤',
'errorServerUpload':'伺服器返回出錯'
},
'webapp':{
'tip1':"本功能由百度APP提供,如看到此頁面,請各位站長首先申請百度APPKey!",
'tip2':"申請完成之後請至ueditor.config.js中配置獲得的appkey! ",
'applyFor':"點此申請",
'anthorApi':"百度API"
},
'template':{
'static':{
'lang_template_bkcolor':'背景顏色',
'lang_template_clear' : '保留原有內容',
'lang_template_select' : '選擇模板'
},
'blank':"空白文檔",
'blog':"博客文章",
'resume':"個人簡歷",
'richText':"圖文混排",
'sciPapers':"科技論文"
},
'scrawl':{
'static':{
'lang_input_previousStep':"上一步",
'lang_input_nextsStep':"下一步",
'lang_input_clear':'清空',
'lang_input_addPic':'添加背景',
'lang_input_ScalePic':'縮放背景',
'lang_input_removePic':'刪除背景',
'J_imgTxt':{title:'添加背景圖片'}
},
'noScarwl':"尚未作畫,白紙一張~",
'scrawlUpLoading':"塗鴉上傳中,別急哦~",
'continueBtn':"繼續",
'imageError':"糟糕,圖片讀取失敗了!",
'backgroundUploading':'背景圖片上傳中,別急哦~'
},
'music':{
'static':{
'lang_input_tips':"輸入歌手/歌曲/專輯,搜索您感興趣的音樂!",
'J_searchBtn':{value:'搜索歌曲'}
},
'emptyTxt':'未搜索到相關音樂結果,請換一個關鍵詞試試。',
'chapter':'歌曲',
'singer':'歌手',
'special':'專輯',
'listenTest':'試聽'
},
'anchor':{
'static':{
'lang_input_anchorName':'錨點名字:'
}
},
'charts':{
'static':{
'lang_data_source':'數據源:',
'lang_chart_format': '圖表格式:',
'lang_data_align': '數據對齊方式',
'lang_chart_align_same': '數據源與圖表X軸Y軸一致',
'lang_chart_align_reverse': '數據源與圖表X軸Y軸相反',
'lang_chart_title': '圖表標題',
'lang_chart_main_title': '主標題:',
'lang_chart_sub_title': '子標題:',
'lang_chart_x_title': 'X軸標題:',
'lang_chart_y_title': 'Y軸標題:',
'lang_chart_tip': '提示文字',
'lang_cahrt_tip_prefix': '提示文字首碼:',
'lang_cahrt_tip_description': '僅餅圖有效, 當滑鼠移動到餅圖中相應的塊上時,提示框內的文字的首碼',
'lang_chart_data_unit': '數據單位',
'lang_chart_data_unit_title': '單位:',
'lang_chart_data_unit_description': '顯示在每個數據點上的數據的單位, 比如: 溫度的單位 ℃',
'lang_chart_type': '圖表類型:',
'lang_prev_btn': '上一個',
'lang_next_btn': '下一個'
}
},
'emotion':{
'static':{
'lang_input_choice':'精選',
'lang_input_Tuzki':'兔斯基',
'lang_input_BOBO':'BOBO',
'lang_input_lvdouwa':'綠豆蛙',
'lang_input_babyCat':'baby貓',
'lang_input_bubble':'泡泡',
'lang_input_youa':'有啊'
}
},
'gmap':{
'static':{
'lang_input_address':'地址',
'lang_input_search':'搜索',
'address':{value:"北京"}
},
searchError:'無法定位到該地址!'
},
'help':{
'static':{
'lang_input_about':'關於UEditor',
'lang_input_shortcuts':'快捷鍵',
'lang_input_introduction':'UEditor是由百度web前端研發部開發的所見即所得富文本web編輯器,具有輕量,可定製,注重用戶體驗等特點。開源基于BSD協議,允許自由使用和修改代碼。',
'lang_Txt_shortcuts':'快捷鍵',
'lang_Txt_func':'功能',
'lang_Txt_bold':'給選中字設置為加粗',
'lang_Txt_copy':'複製選中內容',
'lang_Txt_cut':'剪切選中內容',
'lang_Txt_Paste':'粘貼',
'lang_Txt_undo':'重新執行上次操作',
'lang_Txt_redo':'撤銷上一次操作',
'lang_Txt_italic':'給選中字設置為斜體',
'lang_Txt_underline':'給選中字加下劃線',
'lang_Txt_selectAll':'全部選中',
'lang_Txt_visualEnter':'軟回車',
'lang_Txt_fullscreen':'全屏'
}
},
'insertframe':{
'static':{
'lang_input_address':'地址:',
'lang_input_width':'寬度:',
'lang_input_height':'高度:',
'lang_input_isScroll':'允許捲動條:',
'lang_input_frameborder':'顯示框架邊框:',
'lang_input_alignMode':'對齊方式:',
'align':{title:"對齊方式", options:["預設", "左對齊", "右對齊", "居中"]}
},
'enterAddress':'請輸入地址!'
},
'link':{
'static':{
'lang_input_text':'文本內容:',
'lang_input_url':'連結地址:',
'lang_input_title':'標題:',
'lang_input_target':'是否在新窗口打開:'
},
'validLink':'只支持選中一個連結時生效',
'httpPrompt':'您輸入的超連結中不包含http等協議名稱,預設將為您添加http://首碼'
},
'map':{
'static':{
lang_city:"城市",
lang_address:"地址",
city:{value:"北京"},
lang_search:"搜索",
lang_dynamicmap:"插入動態地圖"
},
cityMsg:"請選擇城市",
errorMsg:"抱歉,找不到該位置!"
},
'searchreplace':{
'static':{
lang_tab_search:"查找",
lang_tab_replace:"替換",
lang_search1:"查找",
lang_search2:"查找",
lang_replace:"替換",
lang_searchReg:'支持正則表達式,添加前後斜杠標示為正則表達式,例如“/表達式/”',
lang_searchReg1:'支持正則表達式,添加前後斜杠標示為正則表達式,例如“/表達式/”',
lang_case_sensitive1:"區分大小寫",
lang_case_sensitive2:"區分大小寫",
nextFindBtn:{value:"下一個"},
preFindBtn:{value:"上一個"},
nextReplaceBtn:{value:"下一個"},
preReplaceBtn:{value:"上一個"},
repalceBtn:{value:"替換"},
repalceAllBtn:{value:"全部替換"}
},
getEnd:"已經搜索到文章末尾!",
getStart:"已經搜索到文章頭部",
countMsg:"總共替換了{#count}處!"
},
'snapscreen':{
'static':{
lang_showMsg:"截圖功能需要首先安裝UEditor截圖插件! ",
lang_download:"點此下載",
lang_step1:"第一步,下載UEditor截圖插件並運行安裝。",
lang_step2:"第二步,插件安裝完成後即可使用,如不生效,請重啟瀏覽器後再試!"
}
},
'spechars':{
'static':{},
tsfh:"特殊字元",
lmsz:"羅馬字元",
szfh:"數學字元",
rwfh:"日文字元",
xlzm:"希臘字母",
ewzm:"俄文字元",
pyzm:"拼音字母",
yyyb:"英語音標",
zyzf:"其他"
},
'edittable':{
'static':{
'lang_tableStyle':'表格樣式',
'lang_insertCaption':'添加表格名稱行',
'lang_insertTitle':'添加表格標題行',
'lang_insertTitleCol':'添加表格標題列',
'lang_orderbycontent':"使表格內容可排序",
'lang_tableSize':'自動調整表格尺寸',
'lang_autoSizeContent':'按表格文字自適應',
'lang_autoSizePage':'按頁面寬度自適應',
'lang_example':'示例',
'lang_borderStyle':'表格邊框',
'lang_color':'顏色:'
},
captionName:'表格名稱',
titleName:'標題',
cellsName:'內容',
errorMsg:'有合併單元格,不可排序'
},
'edittip':{
'static':{
lang_delRow:'刪除整行',
lang_delCol:'刪除整列'
}
},
'edittd':{
'static':{
lang_tdBkColor:'背景顏色:'
}
},
'formula':{
'static':{
}
},
'wordimage':{
'static':{
lang_resave:"轉存步驟",
uploadBtn:{src:"upload.png",alt:"上傳"},
clipboard:{style:"background: url(copy.png) -153px -1px no-repeat;"},
lang_step:"1、點擊頂部複製按鈕,將地址複製到剪貼板;2、點擊添加照片按鈕,在彈出的對話框中使用Ctrl+V粘貼地址;3、點擊打開後選擇圖片上傳流程。"
},
'fileType':"圖片",
'flashError':"FLASH初始化失敗,請檢查FLASH插件是否正確安裝!",
'netError':"網絡連接錯誤,請重試!",
'copySuccess':"圖片地址已經複製!",
'flashI18n':{} //留空預設中文
},
'autosave': {
'saving':'保存中...',
'success':'本地保存成功'
}
};
File diff suppressed because it is too large Load Diff
+1
View File
@@ -1 +1,2 @@
/*可以在这里添加你自己的css*/
body{font-family:'宋体';font-size:13px;}
+5 -2
View File
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large Load Diff