Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有什么方法可以将tinymce textarea中的图像数量限制为一张图像?这也适用于 jbimages 插件吗?(jbimages 上传带有 < img > 标签的图像)我需要设置一个限制以避免服务器过载。
我不熟悉 jbimages 插件。但是您可以检查$(editor.getBody()).find('img')以获取编辑器中的图像数量并删除足够多的图像,以便只剩下一个。
$(editor.getBody()).find('img')