Explorar el Código

Use Itarable directly when calling writer.removeSelectionAttribute().

Maciej Gołaszewski hace 6 años
padre
commit
6ffe0218fe
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      packages/ckeditor5-enter/src/shiftentercommand.js

+ 1 - 1
packages/ckeditor5-enter/src/shiftentercommand.js

@@ -85,7 +85,7 @@ function softBreakAction( model, writer, selection ) {
 		const attributesToCopy = getCopyOnEnterAttributes( model.schema, selection.getAttributes() );
 		const attributesToCopy = getCopyOnEnterAttributes( model.schema, selection.getAttributes() );
 		insertBreak( writer, range.end );
 		insertBreak( writer, range.end );
 
 
-		writer.removeSelectionAttribute( Array.from( selection.getAttributeKeys() ) );
+		writer.removeSelectionAttribute( selection.getAttributeKeys() );
 		writer.setSelectionAttribute( attributesToCopy );
 		writer.setSelectionAttribute( attributesToCopy );
 	} else {
 	} else {
 		const leaveUnmerged = !( range.start.isAtStart && range.end.isAtEnd );
 		const leaveUnmerged = !( range.start.isAtStart && range.end.isAtEnd );