We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b8c37e1 + 72be84c commit b6f1261Copy full SHA for b6f1261
1 file changed
packages/super-editor/src/core/super-converter/exporter.js
@@ -1137,7 +1137,7 @@ function translateMark(mark) {
1137
break;
1138
1139
case 'highlight':
1140
- markElement.attributes['w:fill'] = attrs.color.substring(1);
+ markElement.attributes['w:fill'] = attrs.color?.substring(1);
1141
markElement.attributes['w:color'] = 'auto';
1142
markElement.attributes['w:val'] = 'clear';
1143
markElement.name = 'w:shd';
0 commit comments