Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

如何不通过工具栏打开对话框? #3231

Open
wants to merge 118 commits into
base: dev-1.4.4
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
118 commits
Select commit Hold shift + click to select a range
52b2e03
Merge pull request #43 from fex-team/dev-1.4.3
worry127722 Jun 3, 2014
844f7a0
Merge pull request #44 from fex-team/dev-1.4.3
worry127722 Jun 4, 2014
9901675
[test]
worry127722 Jun 10, 2014
79130b3
[test]
worry127722 Jun 10, 2014
b640f91
Merge pull request #45 from fex-team/dev-1.4.3
worry127722 Jun 10, 2014
801302f
Merge branch 'dev-1.4.3' of https://github.com/worry127722/ueditor in…
worry127722 Jun 10, 2014
df18b79
Merge pull request #400 from worry127722/dev-1.4.3
yancend Jun 10, 2014
29f2ade
ad
worry127722 Jun 11, 2014
c06a77a
6
worry127722 Jun 12, 2014
40deaf1
1
worry127722 Jun 12, 2014
971412f
1
worry127722 Jun 12, 2014
2c74122
3
worry127722 Jun 12, 2014
4268b85
s
worry127722 Jun 12, 2014
9a5b95a
q
worry127722 Jun 13, 2014
642a933
1
worry127722 Aug 26, 2014
c44b3cd
修改测试机地址
worry127722 Aug 26, 2014
16cc518
修改测试机ip
worry127722 Aug 26, 2014
c96bcf3
修改测试配置
worry127722 Aug 26, 2014
4587d74
修改测试配置
worry127722 Aug 26, 2014
58bc1be
修改测试配置
worry127722 Aug 26, 2014
de72a83
修改配置文件
worry127722 Aug 26, 2014
18601e8
恢复 _test 代码
carsonxu Aug 26, 2014
6aac26d
Update table.core.js
minikey Nov 28, 2014
09b5923
Update Uploader.class.php
zhichao-poper Nov 28, 2014
592e973
simpleupload didn't fire *contentChange* event
risent Nov 29, 2014
73698a3
Update simpleupload.js
risent Nov 29, 2014
24183e5
Update simpleupload.js
risent Nov 29, 2014
2dc81ef
Update table.core.js
minikey Dec 11, 2014
645f397
###优化:
StruggleBird Jan 31, 2015
c99eabc
###优化:
StruggleBird Jan 31, 2015
b873773
###优化:
StruggleBird Jan 31, 2015
dd236f0
Merge branch 'dev-1.5.0' of https://github.com/StruggleBird/ueditor i…
StruggleBird Jan 31, 2015
12b0989
Merge
StruggleBird Jan 31, 2015
177c02d
Merge branch 'dev-1.5.0' of https://github.com/StruggleBird/ueditor i…
StruggleBird Jan 31, 2015
34dbf89
Update dialog.js
dail Feb 27, 2015
146a3b1
处理中文双引号不能正常转义
badsummer May 28, 2015
f3bf5c4
Update Uploader.class.php
birdol Nov 10, 2015
1bddfba
修正项目在服务器上部署路径与线上访问路径不一致时,上传插件不能正确加载配置的问题
zxeoc Nov 26, 2015
17171cd
修正项目在服务器上部署路径与线上访问路径不一致时,上传插件不能正确加载配置的问题
zxeoc Nov 26, 2015
e6e09e8
A bug in plugin contextmenu
Dec 15, 2015
2ac5f09
textarea 名称
eecjimmy Jan 10, 2016
92d4e02
Merge pull request #2453 from YuyingWu/dev-1.5.0
Phinome Jan 22, 2016
d687498
Merge pull request #2417 from zxeoc/dev-1.5.0
Phinome Jan 22, 2016
b7aca53
Merge pull request #2389 from birdol/patch-1
Phinome Jan 22, 2016
1f82eb6
Merge pull request #2239 from fex-team/dev-1.4.3
Phinome Jan 22, 2016
1d58d12
Merge pull request #2503 from eecjimmy/dev-1.5.0
Phinome Jan 27, 2016
735dda6
Merge pull request #1869 from StruggleBird/dev-1.5.0
Phinome Jan 27, 2016
44dcc0e
Merge pull request #1659 from risent/patch-1
Phinome Jan 27, 2016
36313fc
Merge pull request #1657 from zhuzhichao/patch-4
Phinome Jan 27, 2016
2205cd3
add plugins guide
Phinome Feb 1, 2016
90aff8c
.Net版-多图上传-在线管理:修复服务器返回图片列表不能倒序Bug
51mono Feb 12, 2016
c7c63ae
Merge pull request #2567 from 51mono/51mono-patch-1
Phinome Feb 14, 2016
022c101
更新第三方插件贡献规范
Phinome Feb 14, 2016
1885e6b
Create ISSUE_TEMPLATE.md
Phinome Feb 18, 2016
d5cff8b
Update ISSUE_TEMPLATE.md
Phinome Feb 18, 2016
93d1405
Update ISSUE_TEMPLATE.md
Phinome Feb 18, 2016
77c068f
Update ISSUE_TEMPLATE.md
Phinome Feb 18, 2016
b8830b2
Update ISSUE_TEMPLATE.md
Phinome Feb 18, 2016
0df2082
Update ISSUE_TEMPLATE.md
Phinome Feb 18, 2016
22bef96
更新下载
Phinome Apr 5, 2016
b3d8c1c
Merge pull request #1696 from minikey/patch-2
Phinome Apr 6, 2016
8641e90
Merge pull request #1650 from minikey/patch-1
Phinome Apr 6, 2016
9da60f3
更新 js 规范
Phinome Apr 6, 2016
d8d20fa
Merge pull request #2054 from badsummer/dev-1.5.0
Phinome Apr 23, 2016
48c07a6
Merge pull request #1848 from dail/patch-1
Phinome Apr 23, 2016
1961726
update .file-title height for firefox
Phinome May 11, 2016
db69aa0
修改image.js本地图片上传
sjshare May 16, 2016
ed5b7ef
修改attachment.js本地文件上传
sjshare May 16, 2016
929a791
更改gruntfile和package.json中过时的配置项
Dafrok Jun 1, 2016
f58254b
Merge pull request #2826 from fex-team/dev-2.0.0
Dafrok Jun 2, 2016
70d1c64
修改package.json 增加uglify的dependence
Dafrok Jun 2, 2016
689030e
Update Uploader.class.php
tangtanglove Jun 20, 2016
a83d116
Update ISSUE_TEMPLATE.md
Phinome Jul 16, 2016
6b7aaf2
add FAQ wiki
Phinome Aug 19, 2016
55a47f2
Merge pull request #2781 from sjshare/dev-1.5.0
Phinome Aug 19, 2016
75ff96c
Merge pull request #2869 from tangtanglove/patch-1
Phinome Aug 19, 2016
c79d8ac
Update README.md
Phinome Dec 11, 2016
84d9f78
Update buttonicon.css
lzxb Dec 23, 2016
caa6c01
Merge pull request #3201 from lzxb/dev-1.5.0
Phinome Dec 28, 2016
52d1fa7
修改htmlParser的正则表达式,增强html解析的容错能力
houyhea Feb 9, 2017
fe3fc76
Merge pull request #3205 from houyhea/dev-1.5.0
Phinome Feb 10, 2017
5df3d0a
Fixed autoheight Plugin onscroll error
May 26, 2017
039c5cc
Create image.js
woleicom Jun 13, 2017
d282854
Merge pull request #3219 from woleicom/dev-1.5.0
Phinome Jun 13, 2017
15c2e1f
Merge pull request #3216 from jinzhk/patch-1
Phinome Jun 13, 2017
c036aa8
prettier format file
Phinome Jun 13, 2017
cb4ca97
注释掉关于表头合并的特殊处理逻辑
Jun 14, 2017
31169ae
update issue template
regrex Jun 14, 2017
ff28212
update comment
regrex Jun 14, 2017
134dd80
Merge pull request #3221 from regrex/dev-1.5.0
Phinome Jun 14, 2017
764276c
解决执行 grunt defalut 命令时抛出错误 TypeError: Cannot read property '1' of null
Jun 21, 2017
243eb67
Merge pull request #3223 from jinhuiWong/dev-1.5.0
Phinome Jun 21, 2017
9089cfa
优化远 程抓取图片插件(catchremoteimage) 的相关代码:
Jun 25, 2017
2bfbb07
Merge pull request #3224 from jinhuiWong/dev-1.5.0
Phinome Jun 26, 2017
985fe52
fix bug
Jul 14, 2017
4ca8391
Merge pull request #3228 from jinhuiWong/dev-1.5.0
Phinome Jul 20, 2017
3f3873b
添加基于内容的判断方式
Aug 4, 2017
b767ad8
添加基于内容的判断方式
Aug 4, 2017
f83e9da
新增安全通告
Phinome Sep 5, 2017
62c9761
修复当图片带有GET参数时,无法本地化的bug
jianzhiyao Sep 25, 2017
9a77b70
使用PHP自带方法分析url,并拼接还原为原本的带GET请求url
jianzhiyao Sep 26, 2017
c4539b9
修复调整单元格对齐方式会导致textarea元素丢失的问题
Dec 4, 2017
6dae9c2
修正大小写问题
conwnet Jan 4, 2018
47ac58b
修复编辑源码状态下,`.focus()`和`.blur()`失效的问题
Fenzland Jan 4, 2018
708af3e
Merge pull request #3238 from Fenzland/fix-focus&blur-in-source-mode
Phinome Jan 9, 2018
5ad9667
Merge pull request #3237 from conwnet/patch-2
Phinome Jan 9, 2018
c6beb79
Merge pull request #3234 from jianzhiyao/patch-2
Phinome Jan 9, 2018
1b63eb8
Merge pull request #3236 from tylanbin/patch-2
Phinome Jan 10, 2018
217733b
upgrade apache commons-fileupload jar to fixe old versions bug, causi…
Phinome Apr 9, 2018
089c7de
add apache common-fileupload jar pacakge security alarm
Phinome Apr 9, 2018
80f01fd
Update image.js
lujiaxing Jul 18, 2018
6a29341
Merge pull request #3247 from lujiaxing/patch-1
Phinome Jul 19, 2018
5bf6dbe
.net 后端示例代码有安全风险,暂时删除
Aug 22, 2018
10bf3d3
更新自定义插件开发相关文档说明
wonderzhou Sep 14, 2018
d013c5a
Merge pull request #3250 from wonderzhou/dev-1.5.0
Phinome Oct 23, 2018
e13fa58
后端代码只是 demo,有太多安全漏洞,为了避免误用,将不再提供
Jan 22, 2019
c6f029e
Update README.md
Jan 6, 2023
ea2585b
Merge pull request #3260 from nwind/patch-2
Jan 6, 2023
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
554 changes: 290 additions & 264 deletions Gruntfile.js

Large diffs are not rendered by default.

24 changes: 24 additions & 0 deletions ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
**声明:如果不看该说明,只在标题中描述问题,一律忽略**

**首先**,感谢各位使用 UEditor,并来到这儿提 `ISSUE`。

**其次**,在回答大量用户提出的 `ISSUE` 的过程中,我们发现需要建立一个提 `ISSUE` 的规则,
将我们的主要精力投入到修复 `UEditor` Bugs 和改进 `UEditor` 中去,让越来越多的人能够使用的舒心。

## 规则

* 提 `ISSUE` 之前,**请先看看文档**。传送门:[文档](http://fex.baidu.com/ueditor/)。很多问题,在文档中都能有答案。特别是配置之类的。
* 提 `ISSUE` 之前,**请先问问搜索引擎(百度、Google)**,因为你遇到的问题,可能其他人也遇到了,并且已经解决了。
只需要动动手指,在输入框里输入,就会有答案,这样方便,远比等我们回复快捷。
* 提 `ISSUE` 之前,如果你已经走过上面两步了,来到 `ISSUE` 这个页面了,此刻,请别急,**建议你再搜索一下`ISSUE`**。
因为,或许你将提的问题,也有人遇到了,而且我们已经反馈了。这时,你只需要找到相应的 `ISSUE`,在那个 `ISSUE` 里留下你的关注就好了。很简单吧!

以上都不满足你,看来这一定是个新的问题。首先,我们要感谢你,帮我们发现了一个新的问题,但是,为了使问题能尽快得到解决。我们建议你按照如下的规则来提:

* 构想清楚问题的表达;
* 写一个简明扼要的标题
* 写一个能描述清楚问题的内容,如果有复现步骤及截图当是极好的;

**最后,是我们的一点希望:希望提 `ISSUE` 的同学,能自行排查、定位问题,甚至自行修复,然后给我们提 `Pull Request`。即使做不到提 `Pull Request`,但是你的排查的过程也是在增加你的 `debug` 的能力。**

### 再次感谢各位选择 `UEditor`!
21 changes: 20 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
Get Started
=====

> 鉴于目前 ISSUE 较多而维护时间较少,且在进行后续的版本更新,目前暂时关闭 ISSUE,若社区有人跟进,欢迎和我们联系。重复的问题,请参阅常见问题的 [FAQ Wiki](https://github.com/fex-team/ueditor/wiki/FAQ)。

## 重要安全通告:

1. commons-fileupload-1.3.1.jar 存在漏洞可能会导致 ddos,源代码中已经修改,使用老版本的用户,强烈推荐升级 commons-fileupload.jar 至最新版本。(2018-04-09).
2. UEditor 所提供的所有后端代码都仅为 DEMO 作用,切不可直接使用到生产环境中,目前已知 php 的代码会存在 ssrf 及文件包含漏洞,因此不再提供。

## ueditor富文本编辑器介绍

UEditor是由百度web前端研发部开发所见即所得富文本web编辑器,具有轻量,可定制,注重用户体验等特点,开源基于MIT协议,允许自由使用和修改代码。
Expand All @@ -9,7 +16,9 @@ UEditor是由百度web前端研发部开发所见即所得富文本web编辑器

### 1.1 下载编辑器

到官网下载ueditor最新版:[[官网地址]](http://ueditor.baidu.com/website/download.html#ueditor "官网下载地址")
1. `git clone ` 仓库
2. `npm install` 安装依赖(如果没有安装 grunt , 请先在全局安装 grunt)
3. 在终端执行 `grunt default`

### 1.2 创建demo文件
解压下载的包,在解压后的目录创建demo.html文件,填入下面的html代码
Expand Down Expand Up @@ -71,6 +80,12 @@ ue.ready(function(){

ueditor的更多API请看[API 文档](http://ueditor.baidu.com/doc "ueditor API 文档")

### 1.6 dev-1.5.0 版本二次开发自定义插件注意事项

dev-1.5.0版对于插件的加载逻辑进行了调整,但官网对应的[二次开发功能文档](http://fex.baidu.com/ueditor/#dev-developer)未对相应调整做出开发细节说明,现补充如下:

除进行原有配置外,还需在实例化ueditor编辑器时在 toolbars 参数数组中,加入自定义插件的 uiname,并且注意uiname必须小写,方可正确加载自定义插件。

## 2 详细文档

ueditor 官网:[http://ueditor.baidu.com](http://ueditor.baidu.com "ueditor 官网")
Expand All @@ -79,6 +94,10 @@ ueditor API 文档:[http://ueditor.baidu.com/doc](http://ueditor.baidu.com/doc

ueditor github 地址:[http://github.com/fex-team/ueditor](http://github.com/fex-team/ueditor "ueditor github 地址")

ueditor 第三方插件贡献 wiki : [第三方插件贡献规范](http://ueditor.baidu.com/website/thirdproject.html)

ueditor 贡献代码规范(javascript): [javascript规范](https://github.com/fex-team/styleguide/blob/master/javascript.md)

## 3 第三方贡献

ueditor for nodejs 参考[https://github.com/netpi/ueditor](https://github.com/netpi/ueditor)
Expand Down
31 changes: 18 additions & 13 deletions _parse/background.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
UE.parse.register('background', function (utils) {
var me = this,
root = me.root,
p = root.getElementsByTagName('p'),
styles;
UE.parse.register("background", function(utils) {
var me = this,
root = me.root,
p = root.getElementsByTagName("p"),
styles;

for (var i = 0,ci; ci = p[i++];) {
styles = ci.getAttribute('data-background');
if (styles){
ci.parentNode.removeChild(ci);
}
for (var i = 0, ci; (ci = p[i++]); ) {
styles = ci.getAttribute("data-background");
if (styles) {
ci.parentNode.removeChild(ci);
}
}

//追加默认的表格样式
styles && utils.cssRule('ueditor_background', me.selector + '{' + styles + '}', document);
});
//追加默认的表格样式
styles &&
utils.cssRule(
"ueditor_background",
me.selector + "{" + styles + "}",
document
);
});
Loading