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

ueditor导入导出word #3230

Open
wants to merge 51 commits into
base: dev-2.0.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
db69aa0
修改image.js本地图片上传
sjshare May 16, 2016
ed5b7ef
修改attachment.js本地文件上传
sjshare May 16, 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
552 changes: 289 additions & 263 deletions Gruntfile.js

Large diffs are not rendered by default.

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

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

**其次**,在回答大量用户提出的 `ISSUE` 的过程中,我们发现需要建立一个提 `ISSUE` 的规则,
Expand All @@ -15,9 +17,8 @@

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

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

### 再次感谢各位选择 `UEditor`!
13 changes: 13 additions & 0 deletions 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 Down Expand Up @@ -73,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 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