Ticket #7977: 7977.patch

File 7977.patch, 1.2 KB (added by Garry Yao, 13 years ago)
  • _source/plugins/enterkey/plugin.js

     
    6666                                        return;
    6767                                }
    6868                        }
    69                         // Don't split caption block, like <caption> and <legend>. (#7944)
    70                         else if ( block && !CKEDITOR.dtd[ block.getName() ][ 'p' ] )
     69                        // Don't split caption blocks. (#7944)
     70                        else if ( block && CKEDITOR.dtd.$captionBlock[ block.getName() ] )
    7171                        {
    7272                                enterBr( editor, mode, range, forceMode );
    7373                                return;
  • _source/core/dtd.js

     
    122122                $nonEditable : {applet:1,button:1,embed:1,iframe:1,map:1,object:1,option:1,script:1,textarea:1,param:1,audio:1,video:1},
    123123
    124124                /**
     125                 *  List of block tags with each one a singleton element lives in the corresponding structure for description.
     126                 */
     127                $captionBlock : { caption:1, legend:1 },
     128
     129                /**
    125130                 * List of elements that can be ignored if empty, like "b" or "span".
    126131                 * @type Object
    127132                 * @example
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy