Ticket #6728: 6728_5.patch
File 6728_5.patch, 1.5 KB (added by , 13 years ago) |
---|
-
_source/plugins/bidi/plugin.js
1 /* 1 /* 2 2 Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. 3 3 For licensing, see LICENSE.html or http://ckeditor.com/license 4 4 */ 5 5 6 6 (function() 7 7 { 8 var guardElements = { table:1, tbody: 1, ul:1, ol:1, blockquote:1, div:1, tr:1 },8 var guardElements = { table:1, ul:1, ol:1, blockquote:1, div:1 }, 9 9 directSelectionGuardElements = {}, 10 10 // All guard elements which can have a direction applied on them. 11 11 allGuardElements = {}; … … 153 153 while ( ancestor && ancestor.type == CKEDITOR.NODE_ELEMENT 154 154 && ( parent = ancestor.getParent() ) 155 155 && parent.getChildCount() == 1 156 && ( !( ancestor.getName() in elements ) || ( parent.getName() in elements ) ) 157 ) 156 && !( ancestor.getName() in elements ) ) 158 157 ancestor = parent; 159 158 160 159 return ancestor.type == CKEDITOR.NODE_ELEMENT … … 209 208 { 210 209 return !! ( node.type == CKEDITOR.NODE_ELEMENT 211 210 && node.getName() in guardElements 212 && !( node.getName() == ( enterMode == CKEDITOR.ENTER_P ) ? 'p' : 'div'211 && !( node.getName() == ( enterMode == CKEDITOR.ENTER_P ? 'p' : 'div' ) 213 212 && node.getParent().type == CKEDITOR.NODE_ELEMENT 214 213 && node.getParent().getName() == 'blockquote' ) 215 214 // Element must be fully included in the range as well. (#6485).