Ticket #6654: 6654.patch

File 6654.patch, 1.1 KB (added by Garry Yao, 10 years ago)
  • _source/plugins/wysiwygarea/plugin.js

     
    962962                                        editor.on( 'insertHtml', onInsertHtml, null, null, 20 );
    963963                                        editor.on( 'insertElement', onInsertElement, null, null, 20 );
    964964                                        // Auto fixing on some document structure weakness to enhance usabilities. (#3190 and #3189)
    965                                         editor.on( 'selectionChange', onSelectionChangeFixBody, null, null, 1 );
     965                                        if ( !editor.config.disableAutoParagraphing )
     966                                                editor.on( 'selectionChange',  onSelectionChangeFixBody, null, null, 1 );
    966967                                });
    967968
    968969                        var titleBackup;
     
    11441145 * @name CKEDITOR.editor#dataReady
    11451146 * @event
    11461147 */
     1148
     1149/**
     1150 * Whether the editor automatically create wrapping paragraphs
     1151 * around "paragraph-less" content inside the document.
     1152 * <strong>Note:</strong> Changing the default value might introduce usability issue that are not able to predict.
     1153 * @type Boolean
     1154 * @default false
     1155 * @example
     1156 * config.disableAutoParagraphing = true;
     1157 */
© 2003 – 2021 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy