X-Git-Url: https://jasonwoof.com/gitweb/?p=ckeditor.git;a=blobdiff_plain;f=_source%2Fplugins%2Flist%2Fplugin.js;h=87ad3cc89a7b588214dd33451a87d0325d9d198f;hp=e37a9b1faf2a9009268a8d5deb91872b9b6e15e5;hb=c6e377a02b54abc07129d72b632763c727476a15;hpb=941b0a9ba4e673e292510d80a5a86806994b8ea6 diff --git a/_source/plugins/list/plugin.js b/_source/plugins/list/plugin.js index e37a9b1..87ad3cc 100644 --- a/_source/plugins/list/plugin.js +++ b/_source/plugins/list/plugin.js @@ -570,7 +570,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license nodeBefore = firstNestedList && firstNestedList.previous, tailNbspmatch; - if( nodeBefore + if ( nodeBefore && ( nodeBefore.name && nodeBefore.name == 'br' || nodeBefore.value && ( tailNbspmatch = nodeBefore.value.match( tailNbspRegex ) ) ) ) { @@ -594,11 +594,11 @@ For licensing, see LICENSE.html or http://ckeditor.com/license } var defaultListDataFilterRules = { elements : {} }; - for( var i in dtd.$listItem ) + for ( var i in dtd.$listItem ) defaultListDataFilterRules.elements[ i ] = getExtendNestedListFilter(); var defaultListHtmlFilterRules = { elements : {} }; - for( i in dtd.$listItem ) + for ( i in dtd.$listItem ) defaultListHtmlFilterRules.elements[ i ] = getExtendNestedListFilter( true ); CKEDITOR.plugins.add( 'list', @@ -631,7 +631,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license afterInit : function ( editor ) { var dataProcessor = editor.dataProcessor; - if( dataProcessor ) + if ( dataProcessor ) { dataProcessor.dataFilter.addRules( defaultListDataFilterRules ); dataProcessor.htmlFilter.addRules( defaultListHtmlFilterRules );