Make WordPress Core

Opened 12 years ago

Closed 10 years ago

#23438 closed defect (bug) (invalid)

iframe dimensions getting broken when clicking "remove formatting" icon in TinyMCE

Reported by: rubberduck's profile rubberduck Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.3.2
Component: TinyMCE Keywords:
Focuses: Cc:

Description

I copy-pasted existing HTML content into the Visual editor, then clicked "Remove Formatting" to clean it up a bit. However, this broke the dimensions of the iframes I had in the code, changing the widths of iframes from 120px to 320px (320px seems to be the default that WP uses every time). I think the original width was in a "style" tag, but WP seems to have removed it from the iframe - I don't need that removed! It's costing us lots of effort to manually go back and fix every iframe.

Change History (5)

#1 @SergeyBiryukov
12 years ago

  • Component changed from General to TinyMCE
  • Keywords reporter-feedback added
  • Severity changed from critical to normal

I copy-pasted existing HTML content into the Visual editor

  1. Could you provide an example of that content to reproduce the issue?
  2. Does the issue still exist in 3.5?

#2 @iseulde
10 years ago

  • Keywords reporter-feedback removed
  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

"Remove Formatting" will remove all inline style tags. If you really want to set the iframe dimensions and use that button, use the height and width attributes.

#3 @lovelouise
10 years ago

  • Resolution invalid deleted
  • Status changed from closed to reopened

#4 @iseulde
10 years ago

  • Keywords close added
  • Milestone set to Awaiting Review

Hi @lovelouise,

Could you please give us some more information why you reopened this ticket? Just reopening is not really helpful.

#5 @iseulde
10 years ago

  • Keywords close removed
  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from reopened to closed

Reopened without explanation.

Note: See TracTickets for help on using tickets.