Opened 11 years ago

Last modified 10 years ago

#12126 closed New Feature

Image dialog: pre-filling 'width' and 'height' should be configurable — at Version 4

Reported by: Martin Dietze Owned by:
Priority: Normal Milestone: CKEditor 4.5.0 Beta
Component: General Version:
Keywords: Cc: mdietze@…, a.tomanek@…

Description (last modified by Piotrek Koszuliński)

In some cases users do not want hard-set image dimensions in the generated IMG tags by default, and clearing those fields each time an image gets added is error-prone and annoying. Thus this behavior should be configurable.

The attached patch is a three-liner that adds a configuration option 'editor.config.image_emptyHeightWidth' that can be set to 'false' to suppress the default.

Edit

PS. We need options for image2 as well.

Change History (5)

Changed 11 years ago by Martin Dietze

Patch adding a 'editor.config.image_emptyHeightWidth' option to suppress pre-filling image dimensions in dialog.

comment:1 Changed 11 years ago by Martin Dietze

Cc: mdietze@… added

comment:2 Changed 11 years ago by Jakub Ś

Version: 4.4.2

This should be made possible with below setting:

var editor = CKEDITOR.replace( 'editor1', {	
	disallowedContent : 'img{width, height}[width, height]'				
});

There is a problem however: #12132.

comment:3 Changed 11 years ago by Piotrek Koszuliński

I'm not sure that these are exactly the same solutions - ACF will disable inputs, when the ticket says about not filling inputs automatically.

Additionally, this ticket could be generalised, because image2 also suffers.

comment:4 Changed 11 years ago by Piotrek Koszuliński

Description: modified (diff)
Milestone: CKEditor 4.5.0
Status: newconfirmed

I'm setting milestone to 4.5. The reason is that this option is ultra small and it cannot be done without changing CKEditor source.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy