简体   繁体   English

如何显示在帖子中找到的图像 if.jpg.png?

[英]How to display image if .jpg .png found on post?

The goal is to have a user paste a URL in textarea, and it outputs not a simple text or URL but displays that image from the URL?目标是让用户在 textarea 中粘贴 URL,它输出的不是简单的文本或 URL,而是显示来自 ZE6B391A8D2C4D45902A23A8B658570 的图像

http://www.thecampussocialite.com/wp-content/uploads/South-park-VS.-Family-Guy.jpg

Can this be done?这可以做到吗? Are there any examples?有没有例子?

The textarea is simply not capable of that. textarea 根本无法做到这一点。

You need to use a rich text editing control, instead of the basic HTML Text Area tag.您需要使用富文本编辑控件,而不是基本的 HTML 文本区域标记。 Popular options are:流行的选择是:

  • FCKEditor FCK编辑器
  • TinyMCE TinyMCE

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM