I imported content from another system. So, for example, the body has typical html, like this:
<img src="/images/image.jpg />
All of the media assets that are referenced as static html, those files were already imported into Drupal and show up in the Files / Media tabs, so, using the WYSIWYG editor I can find that file and embed it and the Drupal link / entity reference for the same file looks like:
<drupal-entity data-embed-button="media_images" data-entity-embed-display="view_mode:media.image_w_caption" data-entity-type="media" data-entity-uuid="114cf23d-a3fc-465e-aa25-b25f0919e57b"> </drupal-entity>
Is there a way to retroactively go through and replace all the static link references with their Drupal 8 entity reference equivalents, maybe by looking up the unique filename? Or is there a way to achieve this on initial import / re import?
I also need to do this for internal links.