Opened 11 years ago

Last modified 11 years ago

#12132 closed Bug

It is not possible to remove width height from image with disallowedContent — at Initial Version

Reported by: Jakub Ś Owned by:
Priority: Normal Milestone: CKEditor 4.4.3
Component: General Version: 4.1
Keywords: Cc:

Description

  1. Use below setting:
    var editor = CKEDITOR.replace( 'editor1', {	
    	disallowedContent : 'img{width, height}[width, height]'				
    });
    
  2. try to insert image new image.

Removing width, height works great on initial content but it doesn't when you insert new image. Here is what happens:

  1. Image is inserted with width/height style (can be checked with firebug)
  2. When you switch to source mode style is still there. Method getData also returns width/height in style.
  3. Only second switch to source mode returns width/height from image. Could be applicable for other elements.

Change History (0)

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