Explorar el Código

Removed unused condition.

Oskar Wróbel hace 9 años
padre
commit
5cee5e3774
Se han modificado 1 ficheros con 2 adiciones y 3 borrados
  1. 2 3
      packages/ckeditor5-engine/src/dev-utils/view.js

+ 2 - 3
packages/ckeditor5-engine/src/dev-utils/view.js

@@ -432,8 +432,7 @@ class RangeParser {
 
 				brackets.push( {
 					bracket: bracket,
-					textOffset: index - offset,
-					outer: index === 0 || index == node._data.length - 1
+					textOffset: index - offset
 				} );
 
 				offset++;
@@ -453,7 +452,7 @@ class RangeParser {
 				// Non-empty text node.
 				if ( text ) {
 					if (
-						( this.sameSelectionCharacters && !item.outer ) ||
+						this.sameSelectionCharacters ||
 						( !this.sameSelectionCharacters && ( item.bracket == TEXT_RANGE_START_TOKEN || item.bracket == TEXT_RANGE_END_TOKEN ) )
 					) {
 						// Store information about text range delimiter.