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 )
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
Attachment: | 0001-Add-new-configuration-option-editor.config.image_emp.patch added |
---|
comment:1 Changed 11 years ago by
Cc: | mdietze@… added |
---|
comment:2 Changed 11 years ago by
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
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
Description: | modified (diff) |
---|---|
Milestone: | → CKEditor 4.5.0 |
Status: | new → confirmed |
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.
Patch adding a 'editor.config.image_emptyHeightWidth' option to suppress pre-filling image dimensions in dialog.