enterprise
enterprise copied to clipboard
Editor: Insert Image doesn't work when adding attributes
Describe the bug Insert Image doesn't work when adding extra attributes to the editor.
To Reproduce Steps to reproduce the behavior:
- Go to https://stackblitz.com/edit/ids-quick-start-1431-ykiuma?file=src/app/app.component.ts
- Click on "Insert Image" in the editor toolbar.
- Enter a valid url to an image, e.g. https://www.infor.com/img/logo-infor.png
- Click "Insert"
Expected behavior The image should be inserted into the editor.
Version
- ids-enterprise: 4.67.1
Screenshots
Platform
- Infor Application/Team Name: Infor OS
Hmm they shouldnt have anything to do with each other. I do see an image is inserted but its just <img>
. Do you think it could be a cross site issue?
Oh yeah I forgot to mention that <img>
is inserted. It works when you don't add attributes though and I see here that attributes are checked when inserting an image so maybe there's an issue there?
Ok that line is definitely the issue. I think we need to be more specific there on which attributes it uses
QA Passed. Verified in https://main-enterprise.demo.design.infor.com/components/editor/test-image-attribute.html. Thanks!