Score:0

How can I make include the host?

mp flag

We have a form with CKEditor where a user can compose a news item. When set to 'basic HTML' input, the user can upload an image to insert as part of their input.

Later, I need to get this node body for an email. I can get the body field (what the user put in the editor), which will contain html markup.
However, the image url does not include the hostname. Is there a Drupal way to get the node body make the url complete so that it works outside of the site, aside from my own processing of the string?

Example:

 <img src="/sites/default/files/inline-images/palette_1.JPG" class="align-right" width="80" height="63"> othermarkup </div>

I need:

<img src="http://mysite.org/sites/default/files/inline-images/palette_1.JPG"
Kevin avatar
in flag
Add Pathologic or similar module to enforce full path and host name to file.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.