Personal license $14.99

1 site, unlimited servers No source distribution Commercial use allowed Can modify source Read full license

Developer license $59.99

Unlimited projects Source and binary distribution Commercial use allowed Distribute modifications Read full license

You need to log-in or create an account
  • Create an account
  • Log-in
  • Please use your real name.
  • Account activation link will be sent to this address.
  • Minimum 8 characters

Clicking this button confirms you read and agreed to the terms of use and privacy policy.

Starting from $ 14.99

View Pricing 14 days money-back guarantee
(7 ratings)

TinyMCE Image Uploader & Manager

  • Developed by Lionite, Released Jan 14, 2012

Upgrade your CMS with this TinyMCE image manager plugin - upload, manage and insert images into TinyMCE editor. Easy to customize and integrate.

Description

A TinyMCE image manager designed as a more minimal (and cheaper) alternative to the official image manager.

  • Gallery management - Image upload (includes multiple file upload) and image removal
  • Insert images into editor from gallery
  • Insert images from URL
  • Completely skinnable - minimal markup and simple stylesheet included
  • Written in object-oriented and uses the jQuery library for concise, easy to extend code
Back to top

Installation

Image manager files

Extract the plug-in zip package into your TinyMCE /plugins directory. It should create a /lioniteimages directory - if not, move the files manually into that directory (/plugins/lioniteimages).

Add the image manager to the TinyMCE configuration

The plug-in name is 'lioniteimages' and needs to be added to the plug-in list:

tinyMCE.init({
    ...
    plugins : "bold,italic,underline,strikethrough,|,lioniteimages",
    ...
});

Image manager configuration

The image manager is packaged with a PHP connector which needs to be configured for the directory structure of your application. If you are using a different server-side language, you will need to port the connector to your language to use the plug-in.

To change the configuration, edit the config.php file that's inside /lioniteimages/connector/php:

// The URL that points to the upload folder on your site. 
// Can be a relative or full URL (include the protocol and domain)
$imageURL = '/demos/http/uploads';

// Full upload system path. Make sure you have write permissions to this folder
$uploadPath = '/var/www/demos/http/uploads';

The image URL value would be used in the HTML 'src' attribute of inserted images, so change it accordingly. Depending on your application, you might separate directories for different users. You can add a dynamic part to the directory names based on user identifier. For example:

$userId = Auth::getId();
$imageURL = '/uploads/' . $userId;
$uploadPath = '/var/www/project/public/uploads/' . $userId;

Authentication

In some cases you want to limit access to image management. Implement your authentication logic inside the isAuth() function.

function isAuth() {
    //Perform your own authorization to make sure user is allowed to upload
    return true; //Return true when authenticated, false when denied
}
Back to top

Troubleshooting

I cannot upload images

Make sure the value of the upload path parameter is correct and that you have permissions to write to the target directory. Also, in case you have URL rewriting that is affecting the folder containing the plugin, you need to allow requests to reach the connector by disabling rewriting inside the plugin folder (or any folder above it).

Images do not appear when inserted into the editor

Make sure that your image URL value is correct. It should be a publicly accessible directory under your document root folder. Also, if you have URL rewriting enabled (such as Apache's mod-rewrite), you might need to disable it inside the directory (using an .htaccess file with the directive 'RewriteEngine off' in Apache).

Back to top

Skinning

Changing styles and markup

The plugin styles are located in the /css/styles.css file. You can control the basic look of the plug-in from there. If you want to perform more extensive changes and add / change markup, you can edit the lioniteimages.htm file. Please make sure to leave existing classes as the Javascript functionality depends on it.

Changing images

All the icons (including the TinyMCE interface icon) are located inside the /img directory. The plugin icon used is taken from the famfamfam icon pack (/img/icon.png).

Back to top

Adding connectors

The plug-in is provided with a PHP connector. To use the plug-in with other server-side languages, you will need to translate the PHP connector scripts to your required language. If you are willing to contribute your code back to the component, I will reimburse your license fee via Paypal (even if you purchased the sublicesnable license).

Connector scripts

There are four connector scripts included with the plug-in:

  • config.php - Directory configuration and authentication logic
  • upload.php - Upload handling and thumbnail generation
  • gallery.php - Gallery generation script. Reads all uploaded files from the configured directory and builds a list of images.
  • remove.php - Image removalĀ 
Read all 21 comments »

Questions & Comments

  • Sergio Minozzi License holder said:

    4 weeks ago
    Hello,
    I'm unable to see the demo working at chrome and firefox. i can not see the images at image manager an at editor. Is it working?
    All work is made without flash? I don't want use flash.
    Regards,
    Bill
    • Lionite Author said:

      4 weeks ago
      Hi Sergio,

      Thank you for bringing this issue to my attention! a change in the server configuration caused the images to stop displaying. I've fixed it, thanks again for letting me know
  • Pasha Semenov said:

    2 months ago
    Hi! Demo does not work in IE9 and Chrome browsers.
    As IE9 said:
    SCRIPT5007: Unable to set value of the property '_renderItem': object is null or undefined
    binpress.tooltip.js, line 5 character 401

    I found issue caused by error in site (binpress.com) scripts. Some script tries to get acces to search form <input> element ($("#header .search input[name='q']")), which usually placed in right top corner of the page, but there is no search form in demo page, so error comes.

    If you don't want your potential clients were dissapointed, contact site administration to solve this problem.
    • Lionite Author said:

      2 months ago
      Hi Semenov,

      Thank you for your comment, we've contact Binpress and they will take care of it.
  • ibolui said:

    2 months ago
    Hi, just want to clarify something for purchasing decision.

    1) it is possible to have a different directory for every users for their image upload, as show below?

    $userId = Auth::getId();
    $imageURL = '/uploads/' . $userId;
    $uploadPath = '/var/www/project/public/uploads/' . $userId;

    What and where is Auth::gerId()?

    2) how are the security and requirement validations performed for uploads? For example, is it possible to restrict file size/type on client end and server end? Is it possible to further process the uploads on server end, such as resizing the images?
    • Lionite Author said:

      2 months ago
      Yes, as shown it is possible to have a separate directory for every user. Auth::getId() is an example of retrieving a user identifier for determining which directory to upload images to. You can use whatever logic you wish for determining the directory structure.

      The included PHP scripts do basic filename cleanup to remove special characters, and extension check for common image extensions. Afterwards it prepare thumbnails for the TinyMCE gallery. If you require additional security checks or file resizing, you can add those yourself easily in the upload script.
    • ibolui said:

      2 months ago
      Can it works with other files upload, such as videos or document files?


      Does it works with Amazon S3? I read from an article there may be a problem.
      http://forums.aurigma.com/yaf_postst4033_Amazon-S3-File-Manager-for-TinyMCE-and-CKEditor.aspx
    • Lionite Author said:

      2 months ago
      As the name and description of the component indicates - it is intended to work with images. Making it work with cloud storage services such as Amazon S3 will require modifications to the scripts, but it is possible.
    • ibolui said:

      2 months ago
      "Making it work with cloud storage services such as Amazon S3 will require modifications to the scripts, but it is possible."

      I haven't touch on Amazon S3 yet so I am not sure exactly how it works. But do you mean if my website is hosted on a normal server, and the images are to be hosted on Amazon S3 server, the scripts will require modifications?

      That is, if my website is hosted on Amazon S3, but have additional instances as storage, the scripts will work normally?
    • Lionite Author said:

      2 months ago
      If the storage and the scripts are on the same machine, no modifications will be needed. If you need to remotely upload the images to another server or a cloud service, you will to modify the script that process the uploads.
    • ibolui said:

      2 months ago
      S3 is considered as another remote server while EBS is deemed as storage on the same machine?

      Is it possible to request for a version which will work with S3, with new pricing of course?
    • Lionite Author said:

      2 months ago
      I have no idea what EBS is. If you are using an uncommon server configuration in which the storage is not available as a local drive, whatever the configuration is - I cannot guarantee it will work without modifications.

      There are no plans at this time to release another version, if we do decide to do it, we'll consider your requirement as well.

Leave a comment

You must be logged-in to leave a comment.
Log-in now or register for a free account.
You must be logged-in to vote. Log-in to your account or register now.
View all 7 reviews »

User Reviews

    very nice, and easy to integrate, i have long time searched for a open source one, but this one for this price was the better way to integrate.
    - Kurt Salman, 2 months ago
    Flag review
    Was this helpful? Yes No
    I love this product. The registration on the site was quick and easy. I made a deposit and save some bucks so I could buy a product for even less than the product costs. Account activation and download has fast response. Right after I downloaded and unzipped the file I move that tinymne image uploader and manager into my remote project, switch the plugin on, set folder rights and voihlaaa! My problem with with image and files using TinyMCE was offed. It was probably the fastest solution and purchase of any script-like-product that I ever had in my 10 years experiences.
    Thank You. As I see many programming languages, the product are coded in, I think I'll come back in few days and will keep browsing for perfect and tested products. Thank You.
    - Peter Sevcik, 2 months ago
    Flag review
    Was this helpful? Yes No
  • 1 of 1 people found this review helpful
    The component is very usefull. I don't need to buy Tiny Image Uploader - it's very expensive for my task. This component more cheaper than original.

    A little bit small documentation. And flash uploader using - is not so good. I cannot change smth in logic there.
    Other things are excellent!
    - Anton, 6 months ago
    Flag review
    Was this helpful? Yes No

Starting from $ 14.99

View Pricing 14 days money-back guarantee