Index: /CKEditor/tests/tt/4548/1.html
===================================================================
--- /CKEditor/tests/tt/4548/1.html	(revision 4513)
+++ /CKEditor/tests/tt/4548/1.html	(revision 4514)
@@ -19,5 +19,6 @@
 
 	var ts, tc,
-			assert = CKEDITOR.test.assert,
+			test = CKEDITOR.test,
+			assert = test.assert,
 			selector = YAHOO.util.Selector,
 			doc = CKEDITOR.document;
@@ -27,12 +28,14 @@
 				config :
 				{
-					extraPlugins : 'fakecomment',
-					fakeComments :
-					[
-						{ pattern : /^break$/, styles : { display : 'block' }, displayName : 'page-break' },
-						// IE downlevel-revealed conditional comments.
-						{ pattern : /\[if[^\]]*?\]>[\s\S]+<!\[endif\]/, styles : { display : 'inline' }, displayName : 'ie-cc' } 
-					],
-					protectedSource : [ /<\?[\s\S]*?\?>/g ]
+					extraPlugins : 'drupalpagebreak',
+					drupalPageBreak :
+					{
+						content : "pagebreak",
+						styles : { display : 'block' },
+						displayName : 'drupal_page_break',
+						dtdParents : { body : 1 }	// Live inside body.
+//						dtdParents : CKEDITOR.dtd.$block	// Live side blocks. 
+					},
+					toolbar : [ [ 'Source', 'Bold', 'Italic', '-', 'NumberedList', 'BulletedList', '-', 'Link', 'Unlink','-','DrupalPageBreak', 'Table' ] ]
 				},
 				name :document.title
@@ -41,4 +44,5 @@
 	ts.add( tc = new YAHOO.tool.TestCase(
 		{
+//			shouldIgnoreAllBut : [ 'test_insert_drupalpagebreak' ],
 			/**
 			 * Test the 'fakecomment' plugin is working properly. 
@@ -51,13 +55,29 @@
 					tc.resume( function()
 					{
+						var fakeObjects = selector.query( 'img.cke_drupal_break', editor.document.$ ),
+							fakeObject = new CKEDITOR.dom.element( fakeObjects[ 0 ] );
+
 						assert.areEqual( getTextAreaValue( 'editor_data_output' ), editor.getData(), 'editor output data doesn\'t match.' );
-						var fakeObjects = selector.query( 'img.cke_comment', editor.document.$ );
-						assert.areEqual( 2, fakeObjects.length, 'There should be two image placeholders.' );
-						assert.isTrue( new CKEDITOR.dom.element( fakeObjects[ 0 ] ).hasClass( 'cke_fc_page-break' ) );
-						assert.areEqual( 'display: block;', new CKEDITOR.dom.element( fakeObjects[ 0 ] ).getAttribute( 'style' ) );
+						assert.isTrue(  fakeObject.hasClass( 'cke_drupal_page_break' ) );
+						assert.isTrue(  fakeObject.hasClass( 'cke_drupal_break' ) );
+						assert.areEqual( 'block', new CKEDITOR.dom.element( fakeObjects[ 0 ] ).getStyle( 'display') );
 					} );
 				} );
 				tc.wait();
+			},
+
+			// Test insert a drupal-page-break inside table.
+			test_insert_drupalpagebreak : function ()
+			{
+				var editor = ts.editor,
+						contentWithSelection = test.getValueAsHtml( 'drupal_page_break_input' );
+				editor.focus();
+				test.setHtmlWithSelection( editor.document.getBody(), contentWithSelection );
+				editor.execCommand( 'drupalpagebreak' );
+				var snapshot = editor.document.getBody().getHtml();
+				assert.areEqual( test.getValueAsHtml( 'drupal_page_break_output' ),
+								 test.fixHtml( editor.getData(), false, true ) , 'editor output data doesn\'t match.' );
 			}
+
 		} ) );
 } )();
@@ -66,21 +86,51 @@
 <body>
 <textarea id="editor_data_input">
-<?php include ("head.html"); ?>
-<p>Block comment below</p>
-<!--break-->
-<p>An inline <!--[if lt IE 6]>
-<span>Visible for Internet Explorer version 6+</span>
-<![endif]--> comment</p>
+<p>Page One Content</p>
+<!--pagebreak-->
+<p>Page Two Content</p>
 <!-- comment should not be faked -->
 </textarea>
-<textarea id="editor_data_output"><?php include ("head.html"); ?>
+<textarea id="editor_data_output">
 <p>
-	Block comment below</p>
-<!--break-->
+	Page One Content</p>
+<!--pagebreak-->
 <p>
-	An inline <!--[if lt IE 6]>
-<span>Visible for Internet Explorer version 6+</span>
-<![endif]-->comment</p>
+	Page Two Content</p>
 <!-- comment should not be faked --></textarea>
+<textarea id="drupal_page_break_input">
+	<table>
+		<tr>
+			<th>head1</th>
+			<th>head2</th>
+		</tr>
+		<tr>
+			<td>^cell1</td>
+			<td>cell2</td>
+		</tr>
+	</table>
+</textarea>
+<textarea id="drupal_page_break_output">
+<table>
+	<tbody>
+		<tr>
+			<th>
+				head1</th>
+			<th>
+				head2</th>
+		</tr>
+	</tbody>
+</table>
+<!--pagebreak-->
+<table>
+	<tbody>
+		<tr>
+			<td>
+				cell1</td>
+			<td>
+				cell2</td>
+		</tr>
+	</tbody>
+</table>
+</textarea>
 </body>
 </html>
