Project

General

Profile

Feature #93330

Updated by Nicole Cordes over 3 years ago

Given: 
 - a page with a "Text" element 
 - insert a table into the bodytext field (CKEditor) 
 <pre> 
 <table class="table table-bordered table-hover"> 
	 <thead> 
		 <tr> 
			 <th>#</th> 
			 <th>FirstName</th> 
			 <th>LastName</th> 
			 <th>Username</th> 
		 </tr> 
	 </thead> 
	 <tbody> 
		 <tr> 
			 <td>1</td> 
			 <td>John</td> 
			 <td>Doe</td> 
			 <td>@JohnDoe</td> 
		 </tr> 
	 </tbody> 
 </table> 
 </pre> 
 - save the content element 
 - add a new row to the table 
 <pre> 
		 <tr> 
			 <td>2</td> 
			 <td>Jane</td> 
			 <td>Doe</td> 
			 <td>@JanveDoe</td> 
		 </tr> 
 </pre> 
 - save and close the content element 
 - change to "List" module and open the "History/Undo" view of the content element 

 Expectation: 
 - I can see the changes of the bodytext 

 Actual: 
 - it is hard to see the changes of the table 
 - depending on the table content, a long scroll bar needs to be used to see any difference 

 Suggestion: 
 - change the CSS for class <code class="css">.diff-item-result</code> `.diff-item-result` from <code class="css">white-space: pre;</code> `white-space: pre;` to <code class="css">white-space: pre-wrap;</code> `white-space: pre-wrap;` (or something similar) to keep spacing but allow line breaks 

Back