abhaynikam/react-trix-rte

Fixed image size option availaible

Closed this issue · 3 comments

Hi is it possible to set a fixed width and height to every image added?
Thanks in advance

@ST2-EV, As far as I am aware Trix editor does not provide an option to set the fixed width and height. Trix editor generates a figure tag which has image height, width attributes. These attributes are used to generate the preview image.

Have you tried to set fixed height and width on attachment--preview class?

.attachment--preview {
  height: 100px,
  width: 100px
}

Let me know if that works for you or else we can try to figure out another solution to solve this issue as well. 😊

@ST2-EV Is the issue resolved? Let me know if I could be of any help here.

Closing due to no activity on this issue. Please feel free to comment if this facing this issue.