Ticket #6654: 6654_2.patch

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

     
    10661066                                        editor.on( 'insertElement', onInsert( doInsertElement ), null, null, 20 );
    10671067                                        editor.on( 'insertText', onInsert( doInsertText ), null, null, 20 );
    10681068                                        // Auto fixing on some document structure weakness to enhance usabilities. (#3190 and #3189)
    1069                                         editor.on( 'selectionChange', onSelectionChangeFixBody, null, null, 1 );
     1069                                        if ( editor.config.autoParagraph !== false )
     1070                                                editor.on( 'selectionChange',  onSelectionChangeFixBody, null, null, 1 );
    10701071                                });
    10711072
    10721073                        var titleBackup;
     
    12481249 */
    12491250
    12501251/**
     1252 * Whether the editor automatically create wrapping paragraphs
     1253 * around "paragraph-less" content inside the document.
     1254 * <strong>Note:</strong> Changing the default value might introduce usability issue that are not able to predict.
     1255 * @since 3.6
     1256 * @type Boolean
     1257 * @default true
     1258 * @example
     1259 * config.autoParagraph = false;
     1260 */
     1261
     1262/**
    12511263 * Fired when some elements are added to the document
    12521264 * @name CKEDITOR.editor#ariaWidget
    12531265 * @event
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy