Changeset 7162
- Timestamp:
- 08/02/11 06:24:19 (23 months ago)
- Location:
- CKEditor/branches/features/v4-paste/_source/plugins
- Files:
-
- 3 edited
-
htmldataprocessor/plugin.js (modified) (1 diff)
-
pagebreak/plugin.js (modified) (3 diffs)
-
wysiwygarea/plugin.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
CKEditor/branches/features/v4-paste/_source/plugins/htmldataprocessor/plugin.js
r7152 r7162 67 67 return function( node ) 68 68 { 69 if ( node.attributes.contenteditable == 'false' ) 70 return; 71 69 72 trimFillers( node, !isOutput ); 70 73 -
CKEditor/branches/features/v4-paste/_source/plugins/pagebreak/plugin.js
r6930 r7162 1 /*1 /* 2 2 Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. 3 3 For licensing, see LICENSE.html or http://ckeditor.com/license … … 64 64 htmlFilter.addRules( 65 65 { 66 attributes : { 67 'class' : function( value, element ) 66 elements : 67 { 68 'div' : function( element ) 68 69 { 69 var className = value.replace( 'cke_pagebreak', '' );70 if ( className != value)70 var className = element.attributes[ 'class' ]; 71 if ( className && className.indexOf( 'cke_pagebreak' ) != -1 ) 71 72 { 72 var span = CKEDITOR.htmlParser.fragment.fromHtml( '<span style="display: none;"> </span>' );73 element.children.length = 0;74 element.add( span );75 73 var attrs = element.attributes; 74 delete attrs[ 'class' ]; 76 75 delete attrs[ 'aria-label' ]; 77 76 delete attrs.contenteditable; 78 77 delete attrs.title; 78 element.children.length = 0; 79 79 } 80 return className;81 80 } 82 81 } 83 }, 5);82 }, 20 ); 84 83 } 85 84 … … 97 96 childStyle = child && ( child.name == 'span' ) && child.attributes.style; 98 97 99 if ( childStyle && ( /page-break-after\s*:\s*always/i ).test( style ) && ( /display\s*:\s*none/i ).test( childStyle ) )98 if ( /page-break-after\s*:\s*always/i.test( style ) ) 100 99 { 101 attributes.contenteditable = "false"; 102 attributes[ 'class' ] = "cke_pagebreak"; 103 attributes[ 'data-cke-display-name' ] = "pagebreak"; 104 attributes[ 'aria-label' ] = label; 105 attributes[ 'title' ] = label; 106 107 element.children.length = 0; 100 if ( !element.children.length 101 // Back-compat. 102 || childStyle && /display\s*:\s*none/i .test( childStyle ) ) 103 { 104 attributes.contenteditable = "false"; 105 attributes[ 'class' ] = "cke_pagebreak"; 106 attributes[ 'data-cke-display-name' ] = "pagebreak"; 107 attributes[ 'aria-label' ] = label; 108 attributes[ 'title' ] = label; 109 element.children.length = 0; 110 } 108 111 } 109 112 } 110 113 } 111 } );114 }, 5 ); 112 115 } 113 116 }, -
CKEditor/branches/features/v4-paste/_source/plugins/wysiwygarea/plugin.js
r7161 r7162 414 414 // 2. It doesn't end with one inner block; (#7467) 415 415 // 3. It doesn't have bogus br yet. 416 // 4. It's an editable block. 416 417 if ( pathBlock 417 418 && pathBlock.isBlockBoundary() 419 && !pathBlock.isReadOnly() 418 420 && !( lastNode && lastNode.type == CKEDITOR.NODE_ELEMENT && lastNode.isBlockBoundary() ) 419 421 && !pathBlock.is( 'pre' )
Note: See TracChangeset
for help on using the changeset viewer.
