Skip to content

Height value moves into Width field when re-opening an image with width = 0 #217

@Saturo78

Description

@Saturo78

Issue Description

I’m using DokuWiki with the ProseMirror plugin. When inserting an image, if I set the width = 0 and enter my desired height, the image is displayed proportionally as expected (automatic width calculation).

However, when I later re-open the editor and edit the same image again, the height I originally entered appears in the Width field, and the Height field is empty. This makes it difficult to adjust the height again without re-entering both values correctly.

  • Steps to reproduce:
  • Insert or edit an image in the ProseMirror editor
  • In the dialog set “Width” = 0 and “Height” = e.g. 200
  • Save
  • Re-open the editor and edit the same image
  • Observe: The dialog now shows 200 in the Width field and the Height field is empty

it inserts x500 | but should insert 0x500 |

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions