Changes between Version 1 and Version 2 of Ticket #8419, comment 11


Ignore:
Timestamp:
Sep 27, 2012, 7:55:35 PM (12 years ago)
Author:
Jean-Philippe Doyle
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #8419, comment 11

    v1 v2  
    66  p : function( element ) {
    77    var child = element.children[0];
    8       if (!(element.previous && element.next) && child
     8      if (!(element.previous && element.next) && child && !child.children
    99          && (!child.value || CKEDITOR.tools.trim( child.value ).match( /^(?:&nbsp;|\xa0|<br \/>)$/ ))) {
    1010        return false;
     
    2323    p : function( element ) {
    2424      var child = element.children[0];
    25         if (!(element.previous && element.next) && child
     25        if (!(element.previous && element.next) && child && !child.children
    2626            && (!child.value || CKEDITOR.tools.trim( child.value ).match( /^(?:&nbsp;|\xa0|<br \/>)$/ ))) {
    2727          return false;
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy