Jump to content

Recommended Posts

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.

 

Link to comment
https://forums.phpfreaks.com/topic/301366-wysiwyg-editor-with-image-upload/
Share on other sites

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.