Opened 13 years ago

Last modified 12 years ago

#7114 closed Bug

iframe plugin does not allow percentage widths — at Version 1

Reported by: effulgentsia Owned by:
Priority: Normal Milestone: CKEditor 3.6.1
Component: General Version: 3.5
Keywords: IBM Cc: monahant@…

Description (last modified by Krzysztof Studnik)

Using Mac Firefox 3.6, CKEditor 3.5.1,

  • add an IFRAME to the textarea with the new iframe plugin / toolbar button.
  • Try to add "100%" as the width.

result:An error message comes back saying only numbers are allowed.
I suspect related to this, if you already have existing text content that contains HTML that includes an iframe with "100%" width, enabling CKEditor on that textarea converts the width to "100". This is a regression from CKEditor 3.4 which left iframes alone (though did not allow selecting them to make changes).

For anyone wishing to disable the iframe plugin until this is fixed, you can add "iframe" to config.removePlugins when calling CKEDITOR.replace(element, config) (see http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.html#.replace and http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.config.html#.removePlugins).

Change History (1)

comment:1 Changed 13 years ago by Krzysztof Studnik

Description: modified (diff)
Status: newconfirmed
Version: 3.5.13.5

Confirmed for all browsers.
TC for second part of ticket:

  • add new iframe, width set to 100
  • in Source mode set its width to width="100%"
  • Switch back to WYSIWYG -> iframe is set to 100% width of edit area
  • Switch back to Source -> width is set back to 100
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