Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Insert appears to only allow upload. I need to provide link to an image that was already uploaded to this site, and select the image style. Is this a function of Insert?
Comment | File | Size | Author |
---|---|---|---|
#2 | After insert.png | 50.58 KB | dkrockville |
#2 | Before insert.png | 61.49 KB | dkrockville |
Comments
Comment #2
dkrockville CreditAttribution: dkrockville as a volunteer commentedComment #3
Snater CreditAttribution: Snater commentedThe Insert module should work on existing image fields just like on new image fields. If your intention is to insert a styled image (instead of a plain link), you would need to select the style in the Insert Image field widget configuration on the content type's Manage form display tab.
Did a quick test and it works as expected in my plain test instance:
Without setting any image style(s) on the image field the Insert Image widget is applied to, the image will be inserted as link. So, the content of your after screenshot seems to be correct in terms of what I would expect. Yet I noticed a minor bug: The plain link's title should of course be the image's title, if provided, instead of the file name.
It is a bit distracting that the preview image in your before screenshot is broken, I guess that is by prupose as I did not experience a broken image when testing.
Comment #4
Snater CreditAttribution: Snater commented