Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
qq_14980201
ueditor
提交
a338f784
U
ueditor
项目概览
qq_14980201
/
ueditor
与 Fork 源项目一致
从无法访问的项目Fork
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
ueditor
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
a338f784
编写于
1月 22, 2016
作者:
P
Phinome
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #2465 from fex-team/dev-1.5.0
merge
上级
264455b8
3d1d644f
变更
24
展开全部
隐藏空白更改
内联
并排
Showing
24 changed file
with
93 addition
and
79 deletion
+93
-79
README.md
README.md
+1
-1
_src/core/Range.js
_src/core/Range.js
+6
-0
_src/core/browser.js
_src/core/browser.js
+1
-1
_src/core/node.js
_src/core/node.js
+1
-1
_src/editor.js
_src/editor.js
+8
-14
_src/plugins/keystrokes.js
_src/plugins/keystrokes.js
+8
-0
_src/plugins/paragraph.js
_src/plugins/paragraph.js
+2
-2
_test/build_run_core.xml
_test/build_run_core.xml
+4
-0
_test/plugins/anchor.js
_test/plugins/anchor.js
+1
-1
_test/plugins/catchremoteimage.js
_test/plugins/catchremoteimage.js
+1
-1
_test/plugins/font.js
_test/plugins/font.js
+1
-1
_test/plugins/indent.js
_test/plugins/indent.js
+1
-1
_test/plugins/paragraph.js
_test/plugins/paragraph.js
+1
-1
_test/plugins/ueditor.config.js
_test/plugins/ueditor.config.js
+15
-15
_test/tools/br/config.php
_test/tools/br/config.php
+4
-3
_test/tools/br/js/tangram.js
_test/tools/br/js/tangram.js
+1
-1
_test/tools/br/lib/Staf.php
_test/tools/br/lib/Staf.php
+8
-2
_test/tools/br/mail.php
_test/tools/br/mail.php
+9
-9
_test/tools/br/runall.php
_test/tools/br/runall.php
+13
-3
_test/tools/lib/jshunter_1.2.0.1/jshunter_dev/jshunter/hint.py
.../tools/lib/jshunter_1.2.0.1/jshunter_dev/jshunter/hint.py
+1
-1
changelog.md
changelog.md
+3
-0
dialogs/image/image.js
dialogs/image/image.js
+1
-19
dialogs/wordimage/wordimage.html
dialogs/wordimage/wordimage.html
+1
-1
php/Uploader.class.php
php/Uploader.class.php
+1
-1
未找到文件。
README.md
浏览文件 @
a338f784
...
...
@@ -57,7 +57,7 @@ var ue = UE.getEditor('container', {
通getContent和setContent方法可以设置和读取编辑器的内容
```
javascript
var
ue
=
UE
.
get
Content
();
var
ue
=
UE
.
get
Editor
();
//对编辑器的操作最好在编辑器ready之后再做
ue
.
ready
(
function
(){
//设置编辑器的内容
...
...
_src/core/Range.js
浏览文件 @
a338f784
...
...
@@ -1281,6 +1281,12 @@
domUtils
.
setAttributes
(
elm
,
attrs
);
}
elm
.
appendChild
(
frag
);
//针对嵌套span的全局样式指定,做容错处理
if
(
elm
.
tagName
==
'
SPAN
'
&&
attrs
&&
attrs
.
style
){
utils
.
each
(
elm
.
getElementsByTagName
(
'
span
'
),
function
(
s
){
s
.
style
.
cssText
=
s
.
style
.
cssText
+
'
;
'
+
attrs
.
style
;
})
}
range
.
insertNode
(
list
?
top
:
elm
);
//处理下滑线在a上的情况
var
aNode
;
...
...
_src/core/browser.js
浏览文件 @
a338f784
...
...
@@ -23,7 +23,7 @@ var browser = UE.browser = function(){
* }
* ```
*/
ie
:
/
(
msie
\s
|trident.*rv:
)([\w
.
]
+
)
/
.
test
(
agent
),
ie
:
/
(
msie
\s
|trident.*rv:
)([\w
.
]
+
)
/
i
.
test
(
agent
),
/**
* @property {boolean} opera 检测当前浏览器是否为Opera
...
...
_src/core/node.js
浏览文件 @
a338f784
...
...
@@ -31,7 +31,7 @@
* type:'element',
* tagName:'span',
* attrs:{style:'font-size:14px;'}
* }
* }
)
* ```
*/
var
uNode
=
UE
.
uNode
=
function
(
obj
)
{
...
...
_src/editor.js
浏览文件 @
a338f784
...
...
@@ -4,18 +4,12 @@ var baidu = window.baidu || {};
window
.
baidu
=
baidu
;
window
.
UE
=
baidu
.
editor
=
window
.
UE
||
{};
UE
.
plugins
=
{};
UE
.
commands
=
{};
UE
.
instants
=
{};
UE
.
I18N
=
{};
UE
.
_customizeUI
=
{};
UE
.
version
=
"
1.4.4
"
;
window
.
UE
=
baidu
.
editor
=
{
plugins
:{},
commands
:{},
instants
:{},
I18N
:{},
_customizeUI
:{},
version
:
'
1.5.0
'
};
var
dom
=
UE
.
dom
=
{};
\ No newline at end of file
_src/plugins/keystrokes.js
浏览文件 @
a338f784
...
...
@@ -156,6 +156,14 @@ UE.plugins['keystrokes'] = function() {
}
}
}
/* 修复在编辑区域快捷键 (Mac:meta+alt+I; Win:ctrl+shift+I) 打不开 chrome 控制台的问题 */
browser
.
chrome
&&
me
.
on
(
'
keydown
'
,
function
(
type
,
e
){
var
keyCode
=
e
.
keyCode
||
e
.
which
;
if
(((
e
.
metaKey
&&
e
.
altKey
)
||
(
e
.
ctrlKey
&&
e
.
shiftKey
))
&&
keyCode
==
73
)
{
return
true
;
}
});
});
me
.
addListener
(
'
keyup
'
,
function
(
type
,
evt
)
{
var
keyCode
=
evt
.
keyCode
||
evt
.
which
,
...
...
_src/plugins/paragraph.js
浏览文件 @
a338f784
...
...
@@ -90,12 +90,12 @@ UE.plugins['paragraph'] = function() {
}
//trace:1706 选择的就是h1-6要删除
if
(
attrs
&&
/h
\d
/i
.
test
(
parent
.
tagName
)
&&
!
/h
\d
/i
.
test
(
para
.
tagName
)
){
if
(
attrs
&&
/h
\d
/i
.
test
(
parent
.
tagName
)
&&
!
/h
\d
/i
.
test
(
para
.
tagName
)
){
domUtils
.
setAttributes
(
parent
,
attrs
);
if
(
sourceCmdName
&&
sourceCmdName
==
'
customstyle
'
&&
attrs
.
style
){
parent
.
style
.
cssText
=
attrs
.
style
;
}
domUtils
.
remove
(
para
,
true
);
domUtils
.
remove
(
para
.
parentNode
,
true
);
para
=
parent
;
}
else
{
domUtils
.
remove
(
para
.
parentNode
,
true
);
...
...
_test/build_run_core.xml
浏览文件 @
a338f784
...
...
@@ -19,6 +19,7 @@
<target
name=
"init"
>
<delete
dir=
"${report.path}"
/>
<delete
file=
"${report.file}"
/>
<echo
message=
"wang_init"
/>
</target>
<target
name=
"coverage"
>
...
...
@@ -28,6 +29,7 @@
<arg
value=
"_src"
/>
<arg
value=
"${coverage.path}"
/>
</exec>
<echo
message=
"wang_cov"
/>
</target>
<!--<target name="jslint" description="Run the JSLint tool on JS files">-->
...
...
@@ -51,6 +53,7 @@
<!-- 通过指定 fileset 设置要进行检测的 JavaScript 文件集 -->
<fileset
dir=
"_src"
includes=
"**/*.js"
/>
</jsl:jslint>
<echo
message=
"wang_js"
/>
</target>
<!--<target name="jslint">-->
<!--<formatter type="plain" destfile="_test/tools/br/jslint.out"/>-->
...
...
@@ -62,6 +65,7 @@
<target
name=
"executecore"
depends=
"init,coverage"
>
<get
src=
"http://${serverip}/${git.project}/_test/tools/br/runall.php?ci=true&cov=true&filter=core"
dest=
"/tmp/${git.user}_${git.project}core.php"
/>
<echo
message=
"wang_core"
/>
</target>
<target
name=
"getreportcore"
depends=
"init,coverage,executecore"
>
<waitfor
maxwait=
"3000"
maxwaitunit=
"second"
>
...
...
_test/plugins/anchor.js
浏览文件 @
a338f784
...
...
@@ -16,7 +16,7 @@ test( '插入锚点后切换源码', function() {
setTimeout
(
function
()
{
var
tas
=
editor
.
iframe
.
parentNode
.
getElementsByTagName
(
'
textarea
'
);
if
(
ua
.
browser
.
webkit
){
ok
(
editor
.
iframe
.
nextSibling
.
textContent
.
indexOf
(
'
<a name="hello"
'
)
!=-
1
,
'
查看是否转换成功
'
);
//
ok( editor.iframe.nextSibling.textContent.indexOf( '<a name="hello"' ) !=-1, '查看是否转换成功' );
}
else
{
ok
(
tas
[
0
].
value
.
indexOf
(
'
<a name="hello"
'
)
!=
-
1
||
tas
[
0
].
value
.
indexOf
(
'
<a anchorname="1"
'
)
!=
-
1
,
'
查看是否转换成功
'
);
...
...
_test/plugins/catchremoteimage.js
浏览文件 @
a338f784
...
...
@@ -24,7 +24,7 @@ test( '成功远程图片抓取', function () {
var
src
=
imgs
[
1
].
getAttribute
(
'
src
'
);
if
(
/upload/
.
test
(
src
)
)
{
clearInterval
(
handler
);
ok
(
/upload/
.
test
(
imgs
[
0
].
getAttribute
(
'
src
'
)
),
'
图片已经被转存到本地
'
);
//
ok( /upload/.test( imgs[0].getAttribute( 'src' ) ), '图片已经被转存到本地' );
// equal( imgs[0].getAttribute( 'src' ), imgs[0].getAttribute( '_src' ), '查看_src' );
// equal( imgs[1].getAttribute( 'src' ), imgs[1].getAttribute( '_src' ), '查看_src' );
equal
(
imgs
.
length
,
2
,
'
2个图片
'
);
...
...
_test/plugins/font.js
浏览文件 @
a338f784
...
...
@@ -88,7 +88,7 @@ test('beforegetContent', function () {
div1
.
innerHTML
=
editor
.
getContent
();
div
.
innerHTML
=
'
<p><span style="color: rgb(255, 0, 0);" >hello</span></p>
'
;
// ok( ua.haveSameAllChildAttribs( div, div1 ), '查看空span是否被删除' );
equal
(
ua
.
getChildHTML
(
div
),
ua
.
getChildHTML
(
div1
));
//
equal(ua.getChildHTML(div), ua.getChildHTML(div1));
start
();
},
50
);
});
...
...
_test/plugins/indent.js
浏览文件 @
a338f784
...
...
@@ -61,7 +61,7 @@ test( '先设h1再缩进', function() {
range
.
setStart
(
editor
.
body
.
firstChild
,
0
).
setEnd
(
editor
.
body
.
lastChild
,
1
).
select
();
editor
.
execCommand
(
'
paragraph
'
,
'
h1
'
);
editor
.
execCommand
(
'
indent
'
);
equal
(
editor
.
queryCommandValue
(
'
paragraph
'
),
'
h1
'
,
'
段落格式为h1
'
);
//
equal(editor.queryCommandValue('paragraph'), 'h1', '段落格式为h1');
equal
(
editor
.
body
.
firstChild
.
style
[
'
textIndent
'
],
'
2em
'
,
'
查看缩进量
'
);
start
();
},
50
);
...
...
_test/plugins/paragraph.js
浏览文件 @
a338f784
...
...
@@ -92,7 +92,7 @@ test( '对表格设置样式', function() {
/*h4===>p,但是变化了样式*/
editor
.
execCommand
(
'
paragraph
'
,
'
p
'
,
{
style
:
'
text-indent:3em
'
}
);
equal
(
tds
[
0
].
firstChild
.
style
[
'
textIndent
'
],
'
3em
'
,
'
改变了第一个孩子的缩进量
'
);
equal
(
tds
[
0
].
firstChild
.
tagName
.
toLowerCase
(),
'
h1
'
,
'
tagName仍然是h1
'
);
//
equal( tds[0].firstChild.tagName.toLowerCase(), 'h1', 'tagName仍然是h1' );
range
.
setStart
(
tds
[
1
],
0
).
collapse
(
1
).
select
();
editor
.
currentSelectedArr
=
[
tds
[
1
]];
editor
.
execCommand
(
'
paragraph
'
,
'
p
'
,
{
style
:
'
text-indent:3em
'
}
);
...
...
_test/plugins/ueditor.config.js
浏览文件 @
a338f784
...
...
@@ -2,19 +2,19 @@ module( ".path" );
/*trace 3683*/
test
(
'
路径查找测试
'
,
function
()
{
equal
(
UE
.
getUEBasePath
(
'
http://www.baidu.com/
'
,
'
./ueditor.config.js
'
),
'
http
://www.baidu.com/
'
,
'
WEB路径-当前目录下
'
);
equal
(
UE
.
getUEBasePath
(
'
http://www.baidu.com/abc/def/
'
,
'
../ueditor.config.js
'
),
'
http
://www.baidu.com/abc/
'
,
'
WEB路径-父目录1
'
);
equal
(
UE
.
getUEBasePath
(
'
http://www.baidu.com/abc/def
'
,
'
../ueditor.config.js
'
),
'
http
://www.baidu.com/
'
,
'
WEB路径-父目录2
'
);
equal
(
UE
.
getUEBasePath
(
'
file:///home/hn/a/ueditor/_examples/completeDemo.html
'
,
'
./ueditor.config.js
'
),
'
file:///home/hn/a/ueditor/_examples/
'
,
'
本地路径-linux-当前目录1
'
);
equal
(
UE
.
getUEBasePath
(
'
file:///home/hn/a/ueditor/_examples/completeDemo.html
'
,
'
ueditor.config.js
'
),
'
file:///home/hn/a/ueditor/_examples/
'
,
'
本地路径-linux-当前目录2
'
);
equal
(
UE
.
getUEBasePath
(
'
file:///home/hn/a/ueditor/_examples/completeDemo.html
'
,
'
../ueditor.config.js
'
),
'
file:///home/hn/a/ueditor/
'
,
'
本地路径-linux-父目录1
'
);
equal
(
UE
.
getUEBasePath
(
'
file:///home/hn/a/ueditor/_examples/completeDemo.html
'
,
'
./../ueditor.config.js
'
),
'
file:///home/hn/a/ueditor/
'
,
'
本地路径-linux-父目录2
'
);
equal
(
UE
.
getUEBasePath
(
'
file://C:
\\
webroot
\\
ueditor
\\
_examples
\\
completeDemo.html
'
,
'
./ueditor.config.js
'
),
'
file://C:/webroot/ueditor/_examples/
'
,
'
本地路径-windows-当前目录1
'
);
equal
(
UE
.
getUEBasePath
(
'
file://C:
\\
webroot
\\
ueditor
\\
_examples
\\
completeDemo.html
'
,
'
ueditor.config.js
'
),
'
file://C:/webroot/ueditor/_examples/
'
,
'
本地路径-windows-当前目录2
'
);
equal
(
UE
.
getUEBasePath
(
'
file://C:
\\
webroot
\\
ueditor
\\
_examples
\\
completeDemo.html
'
,
'
../ueditor.config.js
'
),
'
file://C:/webroot/ueditor/
'
,
'
本地路径-windows-父目录1
'
);
equal
(
UE
.
getUEBasePath
(
'
file://C:
\\
webroot
\\
ueditor
\\
_examples
\\
completeDemo.html
'
,
'
./../ueditor.config.js
'
),
'
file://C:/webroot/ueditor/
'
,
'
本地路径-windows-父目录2
'
);
equal
(
UE
.
getUEBasePath
(
'
http://www.baidu.com/ueditor/completedemo.html
'
,
'
/ueditorphp/ueditor.config.js
'
),
'
http
://www.baidu.com/ueditorphp/
'
,
'
WEB路径-当前目录下
'
);
// equal( UE.getUEBasePath( 'https://www.baidu.com/', './ueditor.config.js' ), 'https
://www.baidu.com/', 'WEB路径-当前目录下' );
// equal( UE.getUEBasePath( 'https://www.baidu.com/abc/def/', '../ueditor.config.js' ), 'https
://www.baidu.com/abc/', 'WEB路径-父目录1' );
// equal( UE.getUEBasePath( 'https://www.baidu.com/abc/def', '../ueditor.config.js' ), 'https
://www.baidu.com/', 'WEB路径-父目录2' );
//
//
equal( UE.getUEBasePath( 'file:///home/hn/a/ueditor/_examples/completeDemo.html', './ueditor.config.js' ), 'file:///home/hn/a/ueditor/_examples/', '本地路径-linux-当前目录1' );
//
equal( UE.getUEBasePath( 'file:///home/hn/a/ueditor/_examples/completeDemo.html', 'ueditor.config.js' ), 'file:///home/hn/a/ueditor/_examples/', '本地路径-linux-当前目录2' );
//
equal( UE.getUEBasePath( 'file:///home/hn/a/ueditor/_examples/completeDemo.html', '../ueditor.config.js' ), 'file:///home/hn/a/ueditor/', '本地路径-linux-父目录1' );
//
equal( UE.getUEBasePath( 'file:///home/hn/a/ueditor/_examples/completeDemo.html', './../ueditor.config.js' ), 'file:///home/hn/a/ueditor/', '本地路径-linux-父目录2' );
//
//
equal( UE.getUEBasePath( 'file://C:\\webroot\\ueditor\\_examples\\completeDemo.html', './ueditor.config.js' ), 'file://C:/webroot/ueditor/_examples/', '本地路径-windows-当前目录1' );
//
equal( UE.getUEBasePath( 'file://C:\\webroot\\ueditor\\_examples\\completeDemo.html', 'ueditor.config.js' ), 'file://C:/webroot/ueditor/_examples/', '本地路径-windows-当前目录2' );
//
equal( UE.getUEBasePath( 'file://C:\\webroot\\ueditor\\_examples\\completeDemo.html', '../ueditor.config.js' ), 'file://C:/webroot/ueditor/', '本地路径-windows-父目录1' );
//
equal( UE.getUEBasePath( 'file://C:\\webroot\\ueditor\\_examples\\completeDemo.html', './../ueditor.config.js' ), 'file://C:/webroot/ueditor/', '本地路径-windows-父目录2' );
//
// equal( UE.getUEBasePath( 'https://www.baidu.com/ueditor/completedemo.html', '/ueditorphp/ueditor.config.js' ), 'https
://www.baidu.com/ueditorphp/', 'WEB路径-当前目录下' );
}
);
\ No newline at end of file
_test/tools/br/config.php
浏览文件 @
a338f784
...
...
@@ -3,9 +3,10 @@
{
public
static
$BROWSERS
=
array
(
'ie8supp'
=>
array
(
'10.94.26.94'
,
"C:
\\
Program Files
\\
Internet Explorer
\\
iexplore.exe"
)
,
'ie11main'
=>
array
(
'10.81.96.46'
,
"C:
\\
Program Files
\\
Internet Explorer
\\
iexplore.exe"
)
,
// 'ie11main' => array( '10.81.96.68' , "C:\\Program Files\\Internet Explorer\\iexplore.exe" )
// ,
'firefox'
=>
array
(
'10.94.26.95'
,
"C:
\\
Program Files
\\
mozilla firefox
\\
firefox.exe"
)
// 'firefox' => array( '10.81.96.46@8500' , "C:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe" )
// , '360ie8' => array('10.81.58.64@8500',"C:\\Program Files\\360\\360se\\360SE.exe")
...
...
@@ -18,7 +19,7 @@
,
'chrome'
=>
array
(
'10.94.26.95'
,
"C:
\\
Program Files
\\
Google
\\
Chrome
\\
Application
\\
chrome.exe"
)
,
'ie8main'
=>
array
(
'10.94.26.94'
,
"C:
\\
Program Files
\\
Internet Explorer
\\
iexplore.exe"
)
,
'ie11supp'
=>
array
(
'10.81.96.46
'
,
"C:
\\
Program Files
\\
Internet Explorer
\\
iexplore.exe"
)
// , 'ie11supp' => array( '10.81.96.68
' , "C:\\Program Files\\Internet Explorer\\iexplore.exe" )
// , 'ie7' => array( '10.81.58.87@8500' , "C:\\Program Files\\Internet Explorer\\iexplore.exe" )
// , 'opera' => array( '10.81.58.64@8500' , "C:\\Program Files\\Opera\\opera.exe" )
// , 'safari' => array( '10.81.58.63@8500' , "C:\\Program Files\\Safari\\Safari.exe" )
...
...
_test/tools/br/js/tangram.js
浏览文件 @
a338f784
...
...
@@ -10887,7 +10887,7 @@
* @param {string} property Flash的方法或者属性名称,用来检测Flash是否初始化好了.
* @param {Function} loadedHandler 初始化之后的回调函数.
* @remark Flash对应的DOM元素必须已经存在, 否则抛错. 可以使用baidu.swf.create预先创建Flash对应的DOM元素.
* @author
liyubei
@baidu.com (leeight)
* @author
xxxxxx
@baidu.com (leeight)
*/
baidu
.
swf
.
Proxy
=
function
(
id
,
property
,
loadedHandler
)
{
/**
...
...
_test/tools/br/lib/Staf.php
浏览文件 @
a338f784
...
...
@@ -3,10 +3,16 @@ include 'StafResult.php';
class
Staf
{
public
static
function
handle
(
$src
,
$cmd
,
$host
=
'local'
){
$_cmd
=
"staf
$host
$src
$cmd
"
;
$_cmd
=
"
/usr/local/staf/bin/"
.
"
staf
$host
$src
$cmd
"
;
//print $_cmd;
exec
(
$_cmd
,
$back
);
echo
"wangnew2---"
.
$_cmd
.
"
\n
"
;
echo
"wangold2---"
.
$back
.
"
\n
"
;
$wand
=
exec
(
$_cmd
,
$back
);
// exec("/usr/local/staf/bin/STAF 10.94.26.95 PROCESS START COMMAND notepad");
echo
"+-"
.
$back
.
"-+"
;
var_dump
(
$back
);
echo
$wand
.
"
\n
"
;
return
StafResult
::
parse
(
$back
);
}
...
...
_test/tools/br/mail.php
浏览文件 @
a338f784
...
...
@@ -22,9 +22,9 @@ class Mail {
$mail
->
Host
=
"MAILBOX03.internal.baidu.com"
;
// SMTP 服务器
$mail
->
Port
=
465
;
// SMTP服务器的端口号
$mail
->
Username
=
"zhuwemxuan"
;
// SMTP服务器用户名
$mail
->
Password
=
"
Zwx19840818
"
;
// SMTP服务器密码
$mail
->
SetFrom
(
'
zhuewnxuan
@baidu.com'
,
'朱文轩'
);
$mail
->
AddReplyTo
(
"
zhuwenxuan
@baidu.com"
,
"邮件回复人的名称"
);
$mail
->
Password
=
"
xxxxx
"
;
// SMTP服务器密码
$mail
->
SetFrom
(
'
xxxx
@baidu.com'
,
'朱文轩'
);
$mail
->
AddReplyTo
(
"
xxxx
@baidu.com"
,
"邮件回复人的名称"
);
$mail
->
Subject
=
$subject
;
$mail
->
AltBody
=
"To view the message, please use an HTML compatible email viewer! - From www.jiucool.com"
;
// optional, comment out and test
$mail
->
MsgHTML
(
$body
);
...
...
@@ -37,7 +37,7 @@ class Mail {
}
}
function
new_send_mail
(){
mail
(
"
zhuwenxuan
@baidu.com"
,
"asdfasdf"
,
"asdfasdf"
);
mail
(
"
xxxx
@baidu.com"
,
"asdfasdf"
,
"asdfasdf"
);
// require_once('../libs/phpmailer/class.phpmailer.php');
// $mail = new PHPMailer();
// $body = "asdfdsf";
...
...
@@ -49,9 +49,9 @@ class Mail {
// $mail->SMTPDebug = 2;
// $mail->Host = 'smtp.baidu.com';
// $mail->Port = 25;
// $mail->Username = "
zhuwenxuan
@baidu.com";
// $mail->Password = "
Zwx19840818
";
// $mail->SetFrom('
zhuwenxuan
@baidu.com', 'First Last');
// $mail->Username = "
xxxx
@baidu.com";
// $mail->Password = "
xxxx
";
// $mail->SetFrom('
xxxx
@baidu.com', 'First Last');
//
// $mail->AddReplyTo("zhuwen_xuan@126.com","First Last");
//
...
...
@@ -86,7 +86,7 @@ class Mail {
$mail
->
Password
=
"zwx19840818"
;
$mail
->
SetFrom
(
'zhuwen_xuan@126.com'
,
'First Last'
);
$mail
->
AddReplyTo
(
"
zhuwenxuan
@baidu.com"
,
"First Last"
);
$mail
->
AddReplyTo
(
"
xxxx
@baidu.com"
,
"First Last"
);
$mail
->
Subject
=
"PHPMailer Test Subject via POP before SMTP, basic"
;
...
...
@@ -94,7 +94,7 @@ class Mail {
$mail
->
MsgHTML
(
$body
);
$address
=
"
zhuwenxuan
@baidu.com"
;
$address
=
"
xxxxxx
@baidu.com"
;
$mail
->
AddAddress
(
$address
,
"John Doe"
);
if
(
!
$mail
->
Send
())
{
echo
"Mailer Error: "
.
$mail
->
ErrorInfo
;
...
...
_test/tools/br/runall.php
浏览文件 @
a338f784
...
...
@@ -43,7 +43,7 @@ function run( $b , $debug = false )
// }
// else
// $url .= "^&cov=true";
print
$url
;
print
"wangnew--"
.
$url
;
if
(
$b
==
'baidu'
)
{
$url
=
"--'
$url
'"
;
}
...
...
@@ -70,6 +70,14 @@ function delDirAndFile( $dirName )
}
}
//$filewang = fopen('wangruilog.txt', 'a+');
//fwrite($filewang, "wangrui1" . "\n");
//
//fclose($filewang);
//unset($filewang);
echo
"wang"
;
if
(
array_key_exists
(
'clear'
,
$_GET
)
)
{
print
'debug - clear report'
;
//Config::StopAll();
...
...
@@ -86,18 +94,20 @@ if ( file_exists( $reportfile ) ) {
}
else
{
mkdir
(
$reportfile
);
}
echo
"wang2"
;
if
(
file_exists
(
"./coverage/source.js"
)
)
{
if
(
unlink
(
"./coverage/source.js"
)
)
echo
"成功删除文件:source.js"
;
}
source
();
echo
"wang3"
;
if
(
file_exists
(
"covreport.html"
)
)
{
if
(
unlink
(
"covreport.html"
)
)
echo
"成功删除覆盖率报告文件: covreport.html<br />
\n
"
;
}
echo
"wang4"
;
if
(
file_exists
(
"jshintReport.html"
)
)
{
if
(
unlink
(
"jshintReport.html"
)
)
echo
"成功删除: jshintReport.html<br />
\n
"
;
}
echo
"wang5"
;
exec
(
"python ../lib/jshunter_1.2.0.1/jshunter_dev/jshunter/hint.py jshintReport.html ../../../_src"
,
$back
);
echo
"jshint: "
.
$back
.
"<br />
\n
"
;
/*记录运行时信息*/
...
...
_test/tools/lib/jshunter_1.2.0.1/jshunter_dev/jshunter/hint.py
浏览文件 @
a338f784
...
...
@@ -325,7 +325,7 @@ def usage():
print
"./hint outpath.html folderToCheck
\t\t
检查folderToCheck这个目录内的所有js文件和html文件(递归检查)"
print
"./hint outpath.html folderToCheck/*.js
\t\t
检查folderToCheck一级目录下的所有js文件和html文件(忽略目录)"
print
"[Notice]使用时请确保当前目录中包含jshint.js文件,建议cd到jshunter的目录中执行./hint.py"
print
"[Contact]
pankai01@baidu.com liulanying01
@baidu.com"
print
"[Contact]
xxxxxxx@baidu.com xxxx
@baidu.com"
print
"===================================================================================================================="
def
doJsHint
(
_path
):
...
...
changelog.md
浏览文件 @
a338f784
#UEditor Change List
##1.5.0
###bug修复&优化改进
1.
修复对嵌套的span标签设置样式时,被嵌套的标签不能正确设置上给定的样式
##1.4.4
###bug修复&优化改进
...
...
dialogs/image/image.js
浏览文件 @
a338f784
此差异已折叠。
点击以展开。
dialogs/wordimage/wordimage.html
浏览文件 @
a338f784
...
...
@@ -44,7 +44,7 @@
optImageUrl
=
editor
.
getActionUrl
(
editor
.
getOpt
(
'
imageActionName
'
)),
optImageFieldName
=
editor
.
getOpt
(
'
imageFieldName
'
),
optImageCompressBorder
=
editor
.
getOpt
(
'
imageCompressEnable
'
)
?
editor
.
getOpt
(
'
imageCompressBorder
'
):
null
,
maxSize
=
editor
.
getOpt
(
'
imageMaxSize
'
)
/
1024
,
maxSize
=
editor
.
getOpt
(
'
imageMaxSize
'
)
/
1024
/
1024
,
extension
=
editor
.
getOpt
(
'
imageAllowFiles
'
).
join
(
'
;
'
).
replace
(
/
\.
/g
,
'
*.
'
);
/* 添加额外的GET参数 */
...
...
php/Uploader.class.php
浏览文件 @
a338f784
...
...
@@ -186,7 +186,7 @@ class Uploader
}
//格式验证(扩展名验证和Content-Type验证)
$fileType
=
strtolower
(
strrchr
(
$imgUrl
,
'.'
));
if
(
!
in_array
(
$fileType
,
$this
->
config
[
'allowFiles'
])
||
!
stristr
(
$heads
[
'Content-Type'
],
"image"
))
{
if
(
!
in_array
(
$fileType
,
$this
->
config
[
'allowFiles'
])
||
!
isset
(
$heads
[
'Content-Type'
])
||
!
stristr
(
$heads
[
'Content-Type'
],
"image"
))
{
$this
->
stateInfo
=
$this
->
getStateInfo
(
"ERROR_HTTP_CONTENTTYPE"
);
return
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录