collective/ckeditor/browser/ckeditor/_source/plugins/list/plugin.js
// Move direction attribute from root to list items.

Move direction attribute from root to list items.
Move direction attribute from root to list items .
function dirToListItems( list )
	{
		var dir = list.getDirection();
		if ( dir )
		{
			for ( var i = 0, children = list.getChildren(), child; child = children.getItem( i ), i < children.count(); i++ )
			{
				if ( child.type == CKEDITOR.NODE_ELEMENT && child.is( 'li' ) && !child.getDirection() )
					child.setAttribute( 'dir', dir );
			}
			list.removeAttribute( 'dir' );
		}
	}
function dirToListItems ( list ) { var dir = list . getDirection ( ) ; if ( dir ) { for ( var i = 0 , children = list . getChildren ( ) , child ; child = children . getItem ( i ) , i < children . count ( ) ; i ++ ) { if ( child . type == CKEDITOR . NODE_ELEMENT && child . is ( 'li' ) && ! child . getDirection ( ) ) child . setAttribute ( 'dir' , dir ) ; } list . removeAttribute ( 'dir' ) ; } }
Move direction attribute from root to list items.
Move direction attribute from root to list items .