Skip to content

Editor overriding img height and width from populated html #668

@elbzero

Description

@elbzero

The trix editor seems to be overriding the html for the image height and width when populating from existing value

Steps to Reproduce
  1. Create a trix editor and pre-populate it with html that includes an img that has a width and height.
  2. Notice the trix editor creates the image and overrides the predefined height and width.

See jsfiddle here for example

I would expect it to not overwrite these properties if they are already set

Details
  • Trix version: 1.2.0
  • Browser name and version: Chrome 76
  • Operating system: macOS Mojave

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions