拖放图像并上传tinymce插件

发布于 2024-12-20 20:01:50 字数 231 浏览 2 评论 0原文

我正在寻找一个tinymce插件或一个外部jquery解决方案,可以轻松集成到tinymce中,允许拖放图像上传和插入tinymce文本区域,直接将图像放在文本区域本身或定义的“放置区域”中,类似于 WordPress 中的新媒体上传按钮,甚至更好,不显示任何对话框。

我不想要画廊浏览器或图像存储库管理之类的额外功能,已经尝试了几个可以做到这一点的插件,但客户发现它太乏味和复杂,他只想删除图像并忘记它,因为他不会再次使用该图像。

I'm looking for a tinymce plugin or an external jquery solution easy to integrate into tinymce that allows drag and drop image uploading and insertion in a tinymce textarea, either directly dropping the image in the textarea itself or in a defined "drop zone", something similar to the new media upload button in Wordpress or, even better, without showing any dialog.

I don't want extra functions like a gallery browser or image repository management, already tried several plugins that do that and the customer finds it too tedious and complicated, he just wants do drop the image and forget about it, as he's not going to use that image ever again.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

飘过的浮云 2024-12-27 20:01:50

您需要支持哪些浏览器?

您是否尝试过将图像拖放到 TinyMCE 文本区域中?它将使用 Base64 对图像进行编码,并使用该编码作为图像标签的 src 属性的值。由于客户“不会再使用该图像”,这可能是一个临时解决方案,特别是如果图像非常小,例如徽标等。

或者,许多人通过 https://github.com/valums/file-uploader 取得了成功拖放上传功能,但我不确定如何将其与 TinyMCE 集成。

What browsers do you need to support?

Have you tried just dragging and dropping an image into a TinyMCE text area? It will encode the image in base64 and use that encoding as the value for the src attribute of the image tag. Since the customer is "not going to use that image ever again" that might be a temporary solution, especially if the images are very small like logos and the like.

Alternatively, many people have success with https://github.com/valums/file-uploader for drag and drop upload functionality, but I'm not sure how you would integrate it with TinyMCE.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文