mirror of
https://github.com/fastmail/Squire.git
synced 2025-01-03 05:00:13 -05:00
Don't strip styles added by tag rewriters.
* Should preserve font styles on paste.
This commit is contained in:
parent
5b52e9b4b8
commit
7d760ce635
2 changed files with 2 additions and 3 deletions
File diff suppressed because one or more lines are too long
|
@ -1160,8 +1160,7 @@
|
||||||
l += childLength - 1;
|
l += childLength - 1;
|
||||||
node.replaceChild( child.empty(), child );
|
node.replaceChild( child.empty(), child );
|
||||||
continue;
|
continue;
|
||||||
}
|
} else if ( !allowStyles && child.style.cssText ) {
|
||||||
if ( !allowStyles && child.style.cssText ) {
|
|
||||||
child.removeAttribute( 'style' );
|
child.removeAttribute( 'style' );
|
||||||
}
|
}
|
||||||
if ( childLength ) {
|
if ( childLength ) {
|
||||||
|
|
Loading…
Reference in a new issue