Notifications
Clear all

auto embedding image urls in reply post

4 Posts
2 Users
0 Reactions
251 Views
Posts: 10
Topic starter
(@alquimist08)
Active Member
Joined: 7 months ago

Hi

I want this in my reply posts

https://wpforo.com/community/how-to-and-troubleshooting-2/how-to-stop-wpforo-from-auto-embedding-image-urls/

 

Currently if I paste an image link in the reply area, this is the output source code:

 

<div class="wpforo-post-content">

<p><img decoding="async" src="https://picsum.photos/536/354.jpg"><p>

</div>

 

I want the option wpforo-auto-embeded-link and wpforo-auto-embeded-image in automatic when paste the image link, that my output source code add link to image and show the image

 

<div class="wpforo-post-content">
         
<a class="wpforo-auto-embeded-link" href="https://picsum.photos/536/354.jpg" target="_blank"><img class="wpforo-auto-embeded-image" src="https://picsum.photos/536/354.jpg"/></a>

</div>

 

Try changing the type of visual editor to text but does exactly the same.
Can you guide me?

thank you

3 Replies
Posts: 10
Topic starter
(@alquimist08)
Active Member
Joined: 7 months ago

Why my post dont have reply??

Reply
1 Reply
Sofy
 Sofy
Admin
(@sofy)
Joined: 8 years ago

Support Team
Posts: 5483

@alquimist08 

You can click the source code button {;}, insert the image URLs (not the whole HTML) and save it. 

Reply
Posts: 10
Topic starter
(@alquimist08)
Active Member
Joined: 7 months ago

Thanks. That source code option and pressing Ctrl+Z when pasting the image are the only options I've found.
Isn't there some code to embed in the theme's functions file?
I'm having trouble giving these options to my users, and I haven't been able to add that code to TinyMCE for the image paste option.
I've tried with the WPForo frontend.js file without success.

Reply