Ticket #6950 (closed New Feature: wontfix)

Opened 4 years ago

Last modified 17 months ago

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

comment:1 Changed 17 months ago by j.swiderski

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

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 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy