xProteuSx Posted June 20, 2016 Share Posted June 20, 2016 Hi guys. I am having a hell of a time finding a WYSIWYG editor that can also handle image uploads. I have a website where I would like users to be able to enter text and images as part of their articles, but not just URLs to images, but to actually upload their images to the site through the WYSIWYG editor so that they can be used in the articles. Is this possible? I can't seem to get a straight answer ... TIA. Quote Link to comment https://forums.phpfreaks.com/topic/301366-wysiwyg-editor-with-image-upload/ Share on other sites More sharing options...
kicken Posted June 20, 2016 Share Posted June 20, 2016 In order to upload an image you require some server-side support for it. Most editors are just client-side scripts that do not interact with the server out of the box. You may be able to extend some of them to add file uploads, but how you do it would depend on the editor you choose to use. TinyMCE is the editor I typically use. If you're willing to spend a little money they have a pre-written extension for handling file uploads called MoxieManager you could purchase and probably just drop in. If you're going for free you could spend some time searching the web for a pre-written plugin or sample code. It would seem the newer versions of TinyMCE provides some support for file uploading, but you still need a server-side component to handle the actual upload. They do provide a simple example which you could extend. Quote Link to comment https://forums.phpfreaks.com/topic/301366-wysiwyg-editor-with-image-upload/#findComment-1533848 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.