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

修复调整单元格对齐方式会导致td中textarea元素丢失的问题#3236

Merged
Phinome merged 1 commit into
fex-team:dev-1.5.0from
tylanbin:patch-2
Jan 10, 2018
Merged

修复调整单元格对齐方式会导致td中textarea元素丢失的问题#3236
Phinome merged 1 commit into
fex-team:dev-1.5.0from
tylanbin:patch-2

Conversation

@tylanbin
Copy link
Copy Markdown
Contributor

@tylanbin tylanbin commented Dec 4, 2017

修复问题:在关闭xss过滤前提下,当选择多个td(td中含有textarea)并修改单元格对齐方式时,td中的textarea会被清空

修复问题:在关闭xss过滤前提下,当选择多个td(td中含有textarea)并修改单元格对齐方式时,td中的textarea会被清空
@1peng
Copy link
Copy Markdown

1peng commented Dec 18, 2017

Hi 我在做粘贴上传图片的时候 发现明明复制的图片,在UE里粘贴却变成了图片url文本
后发现 getPasteImage 方法只判断第一个粘贴的节点是否是图片,但是我console时却是第二个节点是图片文件
return e.clipboardData && e.clipboardData.items && e.clipboardData.items.length == 1 && /^image\//.test(e.clipboardData.items[0].type) ? e.clipboardData.items:null;

于是我优化了下,请指教
var image = null if (e.clipboardData && e.clipboardData.items && e.clipboardData.items.length > 0) { utils.each(e.clipboardData.items,function(item){ if(/^image\//.test(item.type)){ image = e.clipboardData.items } }) } return image;

@zuohuadong
Copy link
Copy Markdown

@tylanbin
notadd/neditor@faa3f11
已经修复,感谢

@zuohuadong
Copy link
Copy Markdown

@1peng 方便提交个PR 么?
https://github.com/notadd/neditor

@Phinome Phinome merged commit 1b63eb8 into fex-team:dev-1.5.0 Jan 10, 2018
@bwzhmm
Copy link
Copy Markdown

bwzhmm commented Sep 29, 2018

复制的excel表格td的style样式丢了,是什么原因呢?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants