IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
455 | 455 | |
456 | 456 | return function( node ) |
457 | 457 | { |
458 | | var isBogus = !CKEDITOR.env.ie ? node.is && node.is( 'br' ) : |
459 | | node.getText && tailNbspRegex.test( node.getText() ); |
| 458 | var isBogus; |
| 459 | |
| 460 | if ( node.type == CKEDITOR.NODE_TEXT ) |
| 461 | { |
| 462 | var text = CKEDITOR.tools.trim( node.getText() ); |
| 463 | isBogus = CKEDITOR.env.webkit ? text == '\u200b' : |
| 464 | CKEDITOR.env.ie ? tailNbspRegex.test( text ) : false; |
| 465 | } |
| 466 | |
| 467 | if ( node.type == CKEDITOR.NODE_ELEMENT && node.is( 'br' ) ) |
| 468 | isBogus = !CKEDITOR.env.ie; |
460 | 469 | |
461 | 470 | if ( isBogus ) |
462 | 471 | { |