Browse Source

Merge pull request #918 from keepFur/dev

fix(src/controllers/inlinestring.js updateinlinestringformat): 内联样式设置的时候,会对部分内容失效
master
mengshukeji 4 years ago
committed by GitHub
parent
commit
ecaeb411f1
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      src/controllers/inlineString.js

3
src/controllers/inlineString.js

@ -186,7 +186,8 @@ export function updateInlineStringFormat(cell, attr, value, $input){
if(startSpanIndex<endSpanIndex){
for(let i=startSpanIndex+1;i<endSpanIndex;i++){
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>";
}
}

Loading…
Cancel
Save