|
@@ -84,7 +84,7 @@ export function renderUpcastAttribute( styleAttr ) {
|
|
|
export function renderDowncastElement( styleAttr ) {
|
|
export function renderDowncastElement( styleAttr ) {
|
|
|
return ( modelAttributeValue, viewWriter ) => viewWriter.createAttributeElement( 'span', {
|
|
return ( modelAttributeValue, viewWriter ) => viewWriter.createAttributeElement( 'span', {
|
|
|
style: `${ styleAttr }:${ modelAttributeValue }`
|
|
style: `${ styleAttr }:${ modelAttributeValue }`
|
|
|
- } );
|
|
|
|
|
|
|
+ }, { priority: 7 } );
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -188,8 +188,7 @@ function normalizeSingleColorDefinition( color ) {
|
|
|
name: 'span',
|
|
name: 'span',
|
|
|
styles: {
|
|
styles: {
|
|
|
color
|
|
color
|
|
|
- },
|
|
|
|
|
- priority: 5
|
|
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
} else {
|
|
} else {
|
|
@@ -201,8 +200,7 @@ function normalizeSingleColorDefinition( color ) {
|
|
|
name: 'span',
|
|
name: 'span',
|
|
|
styles: {
|
|
styles: {
|
|
|
color: `${ color.color }`
|
|
color: `${ color.color }`
|
|
|
- },
|
|
|
|
|
- priority: 5
|
|
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
}
|
|
}
|