IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
451 | 451 | // Browsers are incapable of moving cursor out of certain block elements (e.g. table, div, pre) |
452 | 452 | // at the end of document, makes it unable to continue adding content, we have to make this |
453 | 453 | // easier by opening an new empty paragraph. |
454 | | var testRange = new CKEDITOR.dom.range( editor.document ); |
455 | | testRange.moveToElementEditEnd( editor.document.getBody() ); |
456 | | var testPath = new CKEDITOR.dom.elementPath( testRange.startContainer ); |
457 | | if ( !testPath.blockLimit.is( 'body') ) |
458 | | { |
459 | | var paddingBlock; |
460 | | if ( enterMode != CKEDITOR.ENTER_BR ) |
461 | | paddingBlock = body.append( editor.document.createElement( enterMode == CKEDITOR.ENTER_P ? 'p' : 'div' ) ); |
462 | | else |
463 | | paddingBlock = body; |
| 454 | if ( editor.config.autoPaddingBody !== false ) |
| 455 | { |
| 456 | var testRange = new CKEDITOR.dom.range( editor.document ); |
| 457 | testRange.moveToElementEditEnd( editor.document.getBody() ); |
| 458 | var testPath = new CKEDITOR.dom.elementPath( testRange.startContainer ); |
| 459 | if ( !testPath.blockLimit.is( 'body') ) |
| 460 | { |
| 461 | var paddingBlock; |
| 462 | if ( enterMode != CKEDITOR.ENTER_BR ) |
| 463 | paddingBlock = body.append( editor.document.createElement( enterMode == CKEDITOR.ENTER_P ? 'p' : 'div' ) ); |
| 464 | else |
| 465 | paddingBlock = body; |
464 | 466 | |
465 | | if ( !CKEDITOR.env.ie ) |
466 | | paddingBlock.appendBogus(); |
467 | | } |
468 | | } |
| 467 | if ( !CKEDITOR.env.ie ) |
| 468 | paddingBlock.appendBogus(); |
| 469 | } |
| 470 | |
| 471 | } |
| 472 | } |
469 | 473 | |
470 | 474 | CKEDITOR.plugins.add( 'wysiwygarea', |
471 | 475 | { |
… |
… |
|
1354 | 1358 | * @default true |
1355 | 1359 | * @example |
1356 | 1360 | * config.autoParagraph = false; |
| 1361 | */ |
| 1362 | |
| 1363 | /** |
| 1364 | * Whether to automatically create padding block at the end of document if a non-paragraphing |
| 1365 | * block is found there, this makes it possible to continue adding more content at the end, |
| 1366 | * e.g. after a table. |
| 1367 | * <strong>Note:</strong> Changing the default value might introduce unpredictable usability issues. |
| 1368 | * @name CKEDITOR.config.autoPaddingBody |
| 1369 | * @since 3.6.4 |
| 1370 | * @type Boolean |
| 1371 | * @default true |
| 1372 | * @example |
| 1373 | * config.autoPaddingBody = false; |
1357 | 1374 | */ |
1358 | 1375 | |
1359 | 1376 | /** |