Opened 5 years ago

Closed 2 years ago

#6950 closed New Feature (wontfix)

Dialog for page-break-inside:avoid; in Tables

Reported by: mstohr Owned by:
Priority: Normal Milestone:
Component: UI : Dialogs Version: 3.5
Keywords: Cc:

Description

We use to prepare CKEditor to prepare printable HTML documents. When we include longer tables with different table row size, it's very often our users want to make sure that one row or the full table are not split between two pages.

It would be great to have an option in the table properties to prevent page break, e.g. a checkbox that sets the CSS page-break-inside:avoid. Similarly, a dialog in the table row is required.

Change History (1)

comment:1 Changed 2 years ago by j.swiderski

  • Resolution set to wontfix
  • Status changed from new to closed

Such rule can be added to styles advanced tab without modifying core plugins (tested on CKE 4.0.2):

CKEDITOR.on( 'dialogDefinition', function( ev )
					{						
	var dialogName = ev.data.name;
	var dialogDefinition = ev.data.definition;
						
	if ( dialogName == 'table' )
	{
		var advTab = dialogDefinition.getContents( 'advanced' );							
		var advStyles = advTab.get( 'advStyles' );
		advStyles.default = 'page-break-inside:avoid;';
	}
});	
Note: See TracTickets for help on using tickets.
© 2003 – 2015 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy