Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | 1x 221x 31x | import type { FormatHandler } from '../FormatHandler';
import type { TextColorFormat } from 'roosterjs-content-model-types';
/**
* @internal
*/
export const textColorOnTableCellFormatHandler: FormatHandler<TextColorFormat> = {
parse: (format, element) => {
if (element.style.color) {
// Delete color from format since text color on TD/TH will be handled by separate code
// and text color on segment format context need to be reset so that it will not inherit
// value outer container
delete format.textColor;
}
},
apply: () => {},
};
|