|
@@ -544,7 +544,7 @@ export function clearAttributes() {
|
|
|
// Not collapsed selection should not have artifacts.
|
|
// Not collapsed selection should not have artifacts.
|
|
|
if ( range.isCollapsed ) {
|
|
if ( range.isCollapsed ) {
|
|
|
// Position might be in the node removed by the view writer.
|
|
// Position might be in the node removed by the view writer.
|
|
|
- if ( range.end.parent.document ) {
|
|
|
|
|
|
|
+ if ( range.end.parent.parent ) {
|
|
|
conversionApi.writer.mergeAttributes( range.start );
|
|
conversionApi.writer.mergeAttributes( range.start );
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|