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

Commit

Permalink
修复paragraph命令
Browse files Browse the repository at this point in the history
  • Loading branch information
campaign committed Sep 24, 2014
1 parent ff15810 commit b41f1ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _src/plugins/paragraph.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

1 comment on commit b41f1ce

@VincentMmd
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

什么时候才能修复图片压缩的功能呀,全是bug

Please sign in to comment.