Opened 11 years ago
Last modified 11 years ago
#12132 closed Bug
Image is inserted with width&height styles even when they are not allowed — at Version 5
Reported by: | Jakub Ś | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | CKEditor 4.4.3 |
Component: | General | Version: | 4.1 |
Keywords: | Cc: |
Description (last modified by )
- Use below setting:
var editor = CKEDITOR.replace( 'editor1', { disallowedContent : 'img{width, height}[width, height]' });
- try to insert a new image (plase be sure that provided url is valid and blur text input before closing dialog).
Removing width, height works great on initial content but it doesn't when you insert new image. Here is what happens:
- Image is inserted with width/height style (can be checked with firebug)
- When you switch to source mode style is still there. Method getData also returns width/height in style.
- Only second switch to source mode returns width/height from image. Could be applicable for other elements.
Change History (5)
comment:1 Changed 11 years ago by
Status: | new → confirmed |
---|
comment:2 Changed 11 years ago by
comment:3 Changed 11 years ago by
Summary: | It is not possible to remove width height from image with disallowedContent → Image is inserted with width&height styles even when they are not allowed |
---|---|
Version: | 4.4.0 → 4.1 |
I rephrased title and changed version, because this issue is caused by incomplete integration of ACF and image dialog.
PS. Image2 should be checked for the same scenario.
comment:4 Changed 11 years ago by
Milestone: | → CKEditor 4.4.3 |
---|
comment:5 Changed 11 years ago by
Description: | modified (diff) |
---|
This ticket was created based on #12126.