0
Fork 0
mirror of https://github.com/fastmail/Squire.git synced 2024-12-22 15:23:29 -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:
Neil Jenkins 2020-02-13 13:31:43 +11:00
parent b550de09f0
commit 2799f172ee
3 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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;