WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#10409 closed defect (bug) (wontfix)

TinyMCE inserts images and captions forcing fixed size

Reported by: liviopl Owned by: azaozz
Milestone: Priority: lowest
Severity: trivial Version: 2.8.1
Component: TinyMCE Keywords: css theme image height width
Focuses: 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 (2)

comment:1 junsuijin5 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.

comment:2 Denis-de-Bernardy5 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.

Note: See TracTickets for help on using tickets.