Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev #576

Open
wants to merge 94 commits into
base: master
Choose a base branch
from
Open

Dev #576

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
94 commits
Select commit Hold shift + click to select a range
c14593b
修改b/i/u的query错误问题
carsonxu Mar 26, 2014
02b5053
视频插件转换规则整理
carsonxu Mar 27, 2014
f355173
调整combox样式
carsonxu Mar 27, 2014
c136e41
搜索地点出错
carsonxu Mar 28, 2014
4e925a7
point变量没有var
carsonxu Mar 28, 2014
85b026a
调整下啦菜单的样式
carsonxu Mar 28, 2014
04d915a
修改下拉菜单演示
carsonxu Mar 28, 2014
2beb2e0
修改宽度设置,保留%的宽度
carsonxu Mar 28, 2014
5235475
事件jquery return false改为e.preventDefault()
carsonxu Mar 28, 2014
6b2cc4c
bootstrap里的box-sizing是border-box
carsonxu Mar 31, 2014
ddfef11
修改图片上传bug
carsonxu Apr 1, 2014
ee8676f
修复拖拽改变大小,再bootstrap下出错
carsonxu Apr 2, 2014
776200f
修改拖拽改变图片大小的样式
carsonxu Apr 2, 2014
e81f7dc
修改dialog
carsonxu Apr 2, 2014
5fe7b26
Merge pull request #2 from fex-team/dev
worry127722 Apr 2, 2014
7df465e
Delete encodings.xml
worry127722 Apr 2, 2014
4cab0ef
Delete misc.xml
worry127722 Apr 2, 2014
cc1b128
Delete modules.xml
worry127722 Apr 2, 2014
dfb60f9
Delete umeditor.iml
worry127722 Apr 2, 2014
fc79d2d
Delete vcs.xml
worry127722 Apr 2, 2014
b42af6c
Delete README.md
worry127722 Apr 2, 2014
0bb5ca7
1
worry127722 Apr 2, 2014
572941a
Merge branch 'dev' of https://github.com/worry127722/umeditor into dev
worry127722 Apr 2, 2014
2e43508
Create README.md
worry127722 Apr 2, 2014
4c4df0e
Update README.md
worry127722 Apr 2, 2014
75b4878
Update README.md
worry127722 Apr 2, 2014
9acd2cf
Update README.md
worry127722 Apr 2, 2014
5c5d1a5
new Editor会在render报错
carsonxu Apr 2, 2014
cb652b3
Merge remote-tracking branch 'remotes/fex-umeditor/dev' into dev
worry127722 Apr 2, 2014
8265b8f
完善测试用例
worry127722 Apr 2, 2014
3c62245
Merge pull request #41 from worry127722/dev
yancend Apr 3, 2014
01b8da4
[test]调整用例
yancend Apr 3, 2014
4d29c83
Merge branch 'dev' of https://github.com/fex-team/umeditor into dev
yancend Apr 3, 2014
93017c9
[test]改掉用例里面用得保留字 start
yancend Apr 3, 2014
6e1b572
完善用例在IE8,11中的错误
worry127722 Apr 4, 2014
77923c6
完善测试用例
worry127722 Apr 4, 2014
0eba68e
Merge pull request #4 from fex-team/dev
worry127722 Apr 8, 2014
0164d23
修复IE8下,编辑器不聚焦时,插入html报错
carsonxu Apr 14, 2014
8a2a444
修复chrome 34下,domutils里的removeAttrbutes方法报错
carsonxu Apr 14, 2014
ba6b21b
Merge remote-tracking branch 'origin/dev' into dev
carsonxu Apr 14, 2014
376ab61
添加编辑区域的重置样式
carsonxu Apr 14, 2014
1311c8e
Merge pull request #5 from fex-team/dev
worry127722 Apr 15, 2014
9a170c5
添加覆盖用例
worry127722 Apr 15, 2014
ca8bcc4
修改字体的bug
carsonxu Apr 16, 2014
2264d6d
Merge branch 'dev' of https://github.com/fex-team/umeditor into dev
yancend Apr 17, 2014
5782f13
1
worry127722 Apr 17, 2014
22150b2
修改图片拖拽改变大小
carsonxu Apr 18, 2014
765f332
[test]
yancend Apr 18, 2014
4328a45
Merge branch 'dev' of https://github.com/fex-team/umeditor into dev
yancend Apr 18, 2014
33ce765
Merge pull request #43 from worry127722/dev
yancend Apr 18, 2014
5ca62d3
修复地图bug
carsonxu Apr 21, 2014
dd5edf6
删除一个css文件
carsonxu Apr 21, 2014
b8f4edd
Merge remote-tracking branch 'origin/dev' into dev
carsonxu Apr 21, 2014
5e8cefd
修改地图插件
carsonxu Apr 21, 2014
b9f1d88
[test]添加getxy用例
yancend Apr 25, 2014
cc534cf
Merge branch 'dev' of https://github.com/fex-team/umeditor into dev
yancend Apr 25, 2014
955a59c
Merge pull request #6 from fex-team/dev
worry127722 Apr 25, 2014
47ba314
修复 link xss bug
carsonxu May 12, 2014
d9d2f82
修复上传图片返回内容有pre的bug
carsonxu Jun 5, 2014
9582f2b
Merge remote-tracking branch 'origin/dev' into dev
carsonxu Jun 5, 2014
5618e86
Update link.js
youxiachai Jun 10, 2014
5e25743
Merge pull request #89 from youxiachai/patch-1
carsonxu Jun 12, 2014
4aadce1
Merge pull request #7 from fex-team/dev
worry127722 Jun 16, 2014
dc8ca07
[test]
worry127722 Jun 16, 2014
61a0393
Merge pull request #95 from worry127722/dev
yancend Jun 16, 2014
c6dae80
修改写死在代码里的upfile
carsonxu Jun 16, 2014
45702fb
Merge remote-tracking branch 'origin/dev' into dev
carsonxu Jun 16, 2014
21b6827
[test]
yancend Jun 18, 2014
f180211
添加base64图片转存
carsonxu Jun 24, 2014
7a96303
Merge remote-tracking branch 'origin/dev' into dev
carsonxu Jun 24, 2014
4b07d1e
修改版本号
carsonxu Jun 24, 2014
65c1f7b
修改getContent.php位置
carsonxu Jun 24, 2014
9e35979
添加base64图片转存
carsonxu Jun 24, 2014
a497149
修复ff下fontsize的bug
carsonxu Jun 24, 2014
9abe063
[test]
worry127722 Jun 25, 2014
8a3d5a7
Merge pull request #100 from worry127722/dev
worry127722 Jun 26, 2014
e37b519
修改测试配置
worry127722 Sep 19, 2014
46ade6b
修改测试配置
worry127722 Sep 19, 2014
6bd65fd
s
worry127722 Nov 19, 2014
1aea44f
更新test
worry127722 Dec 3, 2014
70542cb
更新test
worry127722 Dec 3, 2014
d408054
修复issue、
Jul 22, 2015
eb598f3
fix issue #228
Jul 22, 2015
8e1bcbd
Merge pull request #1 from zeldajay/zeldajay-patch-1
Jul 22, 2015
121cb3d
修复bug
Jul 22, 2015
aa63ef2
fix #256 #128
wy-z Nov 21, 2015
300c5ae
del
Nov 26, 2015
f7b01d0
修复调用destroy方法产生的页面dom结构变动bug
HDRorz Jul 6, 2016
ad41363
修复第一次产生选中操作时控制台报错
HDRorz Jul 6, 2016
56874b1
Update Editor.js
HDRorz Jul 15, 2016
e15c4a8
还是修复那个问题
HDRorz Jul 15, 2016
17f0e60
Merge pull request #332 from HDRorz/dev
Phinome Jul 20, 2017
d82d123
Merge pull request #259 from wy-z/dev
Phinome Jul 20, 2017
6e2e113
Merge pull request #230 from zeldajay/dev
Phinome Jul 20, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .idea/encodings.xml

This file was deleted.

5 changes: 0 additions & 5 deletions .idea/misc.xml

This file was deleted.

9 changes: 0 additions & 9 deletions .idea/modules.xml

This file was deleted.

9 changes: 0 additions & 9 deletions .idea/umeditor.iml

This file was deleted.

7 changes: 0 additions & 7 deletions .idea/vcs.xml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ UMeditor,简称UM,是 [ueditor](http://ueditor.baidu.com) 的简版。是为
2. **加载速度更快**: 放弃了使用传统的iframe模式,采用了div的加载方式,以达到更快的加载速度和零加载失败率。
2. **可定制**: 配置项完善,可定制程度高。
2. **可扩展**: 代码层次拆分清晰,功能以插件形式挂接,可灵活定制需要的功能。
3. **多后台支持**: 支持php、asp、jsp、.net四种后台部署代码
3. **多后台支持**: 支持php、asp、jsp、net四中后台部署代码
4. **功能丰富**: 支持插入公式、粘贴QQ截屏、拖放上传图片、插入地图、草稿箱功能

## 入门部署和体验 ##
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions asp/getContent.asp → _examples/server/getContent.asp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<% @LANGUAGE="VBSCRIPT" CODEPAGE="65001" %>
<script src="../third-party/jquery.min.js"></script>
<script src="../third-party/mathquill/mathquill.min.js"></script>
<link rel="stylesheet" href="../third-party/mathquill/mathquill.css"/>
<script src="../../third-party/jquery.min.js"></script>
<script src="../../third-party/mathquill/mathquill.min.js"></script>
<link rel="stylesheet" href="../../third-party/mathquill/mathquill.css"/>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<%
Dim content
Expand Down
6 changes: 3 additions & 3 deletions jsp/getContent.jsp → _examples/server/getContent.jsp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<script src="../third-party/jquery.min.js"></script>
<script src="../third-party/mathquill/mathquill.min.js"></script>
<link rel="stylesheet" href="../third-party/mathquill/mathquill.css"/>
<script src="../../third-party/jquery.min.js"></script>
<script src="../../third-party/mathquill/mathquill.min.js"></script>
<link rel="stylesheet" href="../../third-party/mathquill/mathquill.css"/>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<%
request.setCharacterEncoding("utf-8");
Expand Down
8 changes: 4 additions & 4 deletions php/getContent.php → _examples/server/getContent.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script src="../third-party/jquery.min.js"></script>
<script src="../third-party/mathquill/mathquill.min.js"></script>
<link rel="stylesheet" href="../third-party/mathquill/mathquill.css"/>
<script src="../../third-party/jquery.min.js"></script>
<script src="../../third-party/mathquill/mathquill.min.js"></script>
<link rel="stylesheet" href="../../third-party/mathquill/mathquill.css"/>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<?php

Expand All @@ -9,6 +9,6 @@
$content = htmlspecialchars($_POST['myEditor']);

//存入数据库或者其他操作

//显示
echo "<div class='content'>".htmlspecialchars_decode($content)."</div>";
?>
8 changes: 4 additions & 4 deletions _examples/submitFormDemo.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ <h1>UMEDITOR 提交示例</h1>
form=doc.getElementById("form");

if(version.match(/php/)){
form.action="../php/getContent.php";
form.action="./server/getContent.php";
}else if(version.match(/net/)){
form.action="../net/getContent.ashx";
form.action="./server/getContent.ashx";
}else if(version.match(/jsp/)){
form.action="../jsp/getContent.jsp";
form.action="./server/getContent.jsp";
}else if(version.match(/asp/)){
form.action="../asp/getContent.asp";
form.action="./server/getContent.asp";
}
</script>

Expand Down
24 changes: 14 additions & 10 deletions _src/adapter/adapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
registerUI: function (name, fn) {
utils.each(name.split(/\s+/), function (uiname) {
_editorUI[uiname] = fn;
})
});
},

setEditor : function(editor){
Expand All @@ -43,7 +43,7 @@
}
},
getWidgetData : function(name){
return _widgetData[name]
return _widgetData[name];
},
setWidgetBody : function(name,$widget,editor){
if(!editor._widgetData){
Expand All @@ -56,10 +56,10 @@
getWidgetCallback : function(widgetName){
var me = this;
return function(){
return _widgetCallBack[widgetName].apply(me,[me,$widget].concat(Array.prototype.slice.call(arguments,0)))
}
return _widgetCallBack[widgetName].apply(me,[me,$widget].concat(Array.prototype.slice.call(arguments,0)));
};
}
})
});

}
var pro = _widgetData[name];
Expand Down Expand Up @@ -102,7 +102,7 @@
},
clearCache : function(id){
if ( _editors[id]) {
delete _editors[id]
delete _editors[id];
}
},
delEditor: function (id) {
Expand Down Expand Up @@ -131,9 +131,13 @@
});
var options = editor.options;
if(options.initialFrameWidth){
options.minFrameWidth = options.initialFrameWidth
options.minFrameWidth = options.initialFrameWidth;
}else{
options.minFrameWidth = options.initialFrameWidth = editor.$body.width() || UM.defaultWidth;
var styleWidth = editor.$body[0].style.width;
if(styleWidth.match(/%$/)) {
options.initialFrameWidth = styleWidth;
}
}

$container.css({
Expand All @@ -151,7 +155,7 @@
$.eduitooltip && $.eduitooltip('attachTo', $("[data-original-title]",$container)).css('z-index',editor.getOpt('zIndex')+1);

$container.find('a').click(function(evt){
evt.preventDefault()
evt.preventDefault();
});

editor.fireEvent("afteruiready");
Expand Down Expand Up @@ -212,12 +216,12 @@
btns.length && toolbar.appendToBtnmenu(btns);
});
} else {
$toolbar.find('.edui-btn-toolbar').remove()
$toolbar.find('.edui-btn-toolbar').remove();
}
return $toolbar;
}

})
});


})();
Expand Down
24 changes: 11 additions & 13 deletions _src/adapter/dialog.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
UM.registerUI('link image video map formula',function(name){
UM.registerUI('link image video map',function(name){

var me = this, currentRange, $dialog,
opt = {
Expand Down Expand Up @@ -26,17 +26,17 @@ UM.registerUI('link image video map formula',function(name){
opt.oklabel = ok.label || me.getLang('ok');
if(ok.exec){
opt.okFn = function(){
return $.proxy(ok.exec,null,me,$dialog)()
}
return $.proxy(ok.exec,null,me,$dialog)();
};
}
}
var cancel = data.buttons.cancel;
if(cancel){
opt.cancellabel = cancel.label || me.getLang('cancel');
if(cancel.exec){
opt.cancelFn = function(){
return $.proxy(cancel.exec,null,me,$dialog)()
}
return $.proxy(cancel.exec,null,me,$dialog)();
};
}
}
}
Expand All @@ -51,7 +51,7 @@ UM.registerUI('link image video map formula',function(name){
$dialog.edui().on('beforehide',function () {
var rng = me.selection.getRange();
if (rng.equals(currentRange)) {
rng.select()
rng.select();
}
}).on('beforeshow', function () {
var $root = this.root(),
Expand Down Expand Up @@ -81,21 +81,19 @@ UM.registerUI('link image video map formula',function(name){
UM.setWidgetBody(name,$dialog,me);
UM.setTopEditor(me);
}).on('afterbackdrop',function(){
this.$backdrop.css('zIndex',me.getOpt('zIndex')+1).appendTo(me.$container.find('.edui-dialog-container'))
$dialog.css('zIndex',me.getOpt('zIndex')+2)
this.$backdrop.css('zIndex',me.getOpt('zIndex')+1).appendTo(me.$container.find('.edui-dialog-container'));
$dialog.css('zIndex',me.getOpt('zIndex')+2);
}).on('beforeok',function(){
try{
currentRange.select()
currentRange.select();
}catch(e){}
}).attachTo($btn)
}).attachTo($btn);
});




me.addListener('selectionchange', function () {
var state = this.queryCommandState(name);
$btn.edui().disabled(state == -1).active(state == 1)
$btn.edui().disabled(state == -1).active(state == 1);
});
return $btn;
});
Loading