Browse Source
Merge pull request #918 from keepFur/dev
fix(src/controllers/inlinestring.js updateinlinestringformat): 内联样式设置的时候,会对部分内容失效
master
mengshukeji
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
1 deletions
-
src/controllers/inlineString.js
|
@ -186,7 +186,8 @@ export function updateInlineStringFormat(cell, attr, value, $input){ |
|
|
if(startSpanIndex<endSpanIndex){ |
|
|
if(startSpanIndex<endSpanIndex){ |
|
|
for(let i=startSpanIndex+1;i<endSpanIndex;i++){ |
|
|
for(let i=startSpanIndex+1;i<endSpanIndex;i++){ |
|
|
let span = spans.get(i), content = span.innerHTML; |
|
|
let span = spans.get(i), content = span.innerHTML; |
|
|
cont += "<span style='"+ span.style.cssText +"'>" + content + "</span>"; |
|
|
let cssText = getCssText(span.style.cssText, attr, value); |
|
|
|
|
|
cont += "<span style='"+ cssText +"'>" + content + "</span>"; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|