安装
composer require zerosonesfun/flarum-ext-link-previews
更新缓存
php flarum cache:clear
Here is the BBcode (preview equals the URL):
[preview="https://www.sescse.com"]

A Flarum extension which adds a new BBcode called preview. This allows you to post a link with a maginifying glass icon to the right of the link. Hover over or tap on the magnifying glass icon and a preview will load via an iframe. Some websites will not load in iframes; they don't allow it. If you run into this, the preview simply will not load and you will see a browser error. This is your signal to edit your post and remove the preview BBcode. Better luck next time. 😉 And now, the screenshots:
项目地址:https://github.com/zerosonesfun/flarum-ext-link-previews
https://discuss.flarum.org/d/21841-link-previews-via-iframes