Make WordPress Core

Opened 15 years ago

Closed 8 years ago

#10409 closed defect (bug) (wontfix)

TinyMCE inserts images and captions forcing fixed size

Reported by: liviopl's profile liviopl Owned by: azaozz's profile azaozz
Milestone: Priority: lowest
Severity: trivial Version: 2.8.1
Component: TinyMCE Keywords: ux-feedback
Focuses: ui, javascript Cc:

Description

Inserting images and captions with fixed size makes harm if you don't want to stick to one theme in your blog's lifetime.

If new theme features wider columns, you'll get "broken appearance".

Removing height="" and width="" seems harmful for website loading appearance, but allows browser to scale images if a style is applied (max-width:100%;width:auto;height:auto;).

If changing editor's behaviour is not what you're going to change, then at least give an option to change it.

Change History (5)

#1 @junsuijin
15 years ago

  • Priority changed from low to lowest
  • Resolution set to wontfix
  • Severity changed from minor to trivial
  • Status changed from new to closed

height="" and width="" don't need to be removed to allow CSS resizing of the images. Removing those attributes from the image tags causes the page to stop rendering until the image is completely downloaded, because it doesn't know what size the image will be. You can always take the attributes out of your code with the html view when writing/editing posts as well. Loading up WordPress with more options is not the answer to your problems.

#2 @Denis-de-Bernardy
15 years ago

  • Milestone Unassigned deleted

adding to the previous comment, you already have such an option -- you could write a plugin that overrides the image inserter, for instance.

#3 @subins2000
8 years ago

  • Focuses ui javascript added
  • Keywords ux-feedback added
  • Resolution wontfix deleted
  • Status changed from closed to reopened

Not only does this affect the site, but RSS feeds too.

Recently, I have sent RSS feed email but the width of email overflowed because of the predefined width of the image.

So, it's better to not set the width of the image by default and the user should have the option to whether set it or not.

#4 @SergeyBiryukov
8 years ago

  • Keywords css theme image height width removed
  • Milestone set to Awaiting Review

#5 @azaozz
8 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from reopened to closed

Don't think we will ever remove the width and height from image tags as it is "bad HTML". These attributes are properly used as "suggested dimensions" pretty much everywhere, including RSS readers. Then are easily overridden with CSS and now we add srcset and sizes so the browser decides the appropriate image size to download for the current device, screen, etc.

Note: See TracTickets for help on using tickets.