mirror of
https://github.com/fastmail/Squire.git
synced 2024-12-22 07:13:08 -05:00
Preserve all span attributes
When cleaning the span don't remove it, just remove the properties now going into their own node.
This commit is contained in:
parent
b550de09f0
commit
2799f172ee
3 changed files with 3 additions and 3 deletions
|
@ -1960,7 +1960,7 @@ var replaceStyles = function ( node, parent, config ) {
|
|||
|
||||
if ( newTreeTop ) {
|
||||
newTreeBottom.appendChild( empty( node ) );
|
||||
parent.replaceChild( newTreeTop, node );
|
||||
node.appendChild( newTreeTop );
|
||||
}
|
||||
|
||||
return newTreeBottom || node;
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -91,7 +91,7 @@ var replaceStyles = function ( node, parent, config ) {
|
|||
|
||||
if ( newTreeTop ) {
|
||||
newTreeBottom.appendChild( empty( node ) );
|
||||
parent.replaceChild( newTreeTop, node );
|
||||
node.appendChild( newTreeTop );
|
||||
}
|
||||
|
||||
return newTreeBottom || node;
|
||||
|
|
Loading…
Reference in a new issue