Important facts about commercial licenses

  • Licenses are perpetual. They do not expire and do not need to be renewed.
  • Licenses can be upgraded. You can upgrade to a more expensive license later paying only the difference in cost.
  • Pay attention to the distribution type - Hosted (sites / servers), binary (applications) or source (includes all the others). Choose according to your needs (more below).
  • All licenses allow commercial use unless otherwise indicated.
  • Read the full license by clicking on the icon.
  • Read more about licenses in our handy license guide.
Free

GNU GPL

The GNU GPL is an
open-source 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.

(10 ratings)

TinyMCE Image Manager And Editor

TinyMCE Image Manager And Editor
Developed by Darius Matulionis, Released Mar 5, 2012

TinyMCE Image Manager, image upload, folders structure, image crop

JavaScript

Tags: crop , image , image crop , image manager

Cool stuff

  • Upload, delete images
  • Upload multiple images
  • Image Crop Functionality
  • HTML5 drag and drop file upload ( for IE Uploadify :( )
  • Create, delete folder
  • Insert images into editor
Back to top

Installation

Files

Just copy "imgmanager" folder to TinyMCE plugins folder (tiny_mce/plugins/) and add "imgmanager" plugin and "imgmanager" button to your TinyMCE configuration.

Create upload folder and make it writable.

JavaScript

Add the image manager to the TinyMCE init

tinyMCE.init({
    plugins : "imgmanager",
    theme_advanced_buttons1 : "imgmanager",
});

PHP

Configure paths

Open file imgmanager/libs/config.php

//!!!! CHANGE THIS !!!!!!
// WEB BASE DIRECTORY FOR IMAGE VIEW
defined('WEB_BASE') || define('WEB_BASE', 'TinyMCE_ImageManager/upload' );

//!!!! CHANGE THIS !!!!!!
//UPLOAD PATH
defined('UPLOADS_PATH') || define('UPLOADS_PATH', realpath(dirname(__FILE__) . '/../../../../../'.WEB_BASE ));

Configure basic authentication

/**
* AUTH SHOULD BE DONE HERE !!!! 
*/
//!!!! CHANGE THIS !!!!!! AND THEN ajax.php

$session_id = session_id() ? session_id() : $_COOKIE["PHPSESSID"];
if(session_start()){
    $_SESSION['session_id'] = $session_id;
    $_SESSION['user_auth'] = true;
}

$auth = false;
if($_SESSION['session_id'] && $_SESSION['user_auth']){
    $auth = true;
    require 'EncriptDecript.php';
    $ed = new EncriptDecript();
    $encripted_session_id =$ed->encript($session_id);
}

if(!$auth){
   die("You are not allowed to be here !!!");
}
//------------------------------------------------------------

Configure ajax authentication for flash uploader

open imgmanges/libs/ajax.php file and edit:

//!!!! CHANGE THIS IF NEDED!!!!!!
if (!empty($_FILES) && isset($_FILES['Filedata']) && $_REQUEST['hash']) {
    require 'EncriptDecript.php';
    $ed = new EncriptDecript();
    $session_id = $ed->decript($_REQUEST['hash']);
    $_COOKIE['PHPSESSID'] = $session_id;
    session_id($session_id);
    session_start();
    $_SESSION['user_auth'] = true;
}
Back to top

Visualisation

Plugin is using Twitter Bootstrap

All the documentations you can find here

Back to top

Collaboration

If you interested in collaboration, grab a copy (fork) from GitHub

View all 6 reviews »

User Reviews

  • Gidenilson Santiago 5 months ago
    muito bom.
    Flag
    Was this helpful? Yes No
  • 1 of 1 people found this review helpful sternhagel 11 months ago
    Excellent plugin for managing image uploads in TinyMCE.

    Only drawback from my point of view is the lack of proper documentation - it took me quite some time to get it running because I had to figure out most of the configuration procedure myself.

    Apart from that: excellent work, thanks very much!
    Flag
    Was this helpful? Yes No
  • alex zamora 11 months ago
    me parece un compenente impresionante y de mucha ayuda para cualquier tipo de proyectos
    Flag
    Was this helpful? Yes No
Read all 8 comments »

Questions & Comments


Or enter your name and Email
  • Roger Rabbit 4 months ago
    Looks like it could be a great plugin, only trouble I haven't a clue how to configure the paths?

    Anyone throw some light on this?

    Cheers
  • Silver Kallas 8 months ago
    As easy as pie :)
    Thank you very much, you saved my energy and wallet also!

    Best regards from Estonia,
    Silver
  • Petar Fetrov 10 months ago
    OK, you probably made a good plugin. But with such a bad documentation for non profis, what should i say? Well done?
    I am struggling hours to make a "10 minutes" plugin work. And still cannot. Why screwing a nice work with a bad docu?
You must be logged-in to vote. Log-in to your account or register now.