GNU GPL FREE

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

(10 ratings)

TinyMCE Image Manager And Editor

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

Share and win up to $15k in prizes each month!Learn more

Share

Description

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

Read all 8 comments »

Questions & Comments

Leave a comment

You must be logged-in to leave a comment.
Log-in now or register for a free account.
  • Roger Rabbit said:

    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 said:

    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 said:

    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.
View all 6 reviews »

User Reviews

    muito bom.
    - Gidenilson Santiago, 5 months ago
    Flag review
    Was this helpful? Yes No
  • 1 of 1 people found this review helpful
    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!
    - sternhagel, 10 months ago
    Flag review
    Was this helpful? Yes No
    me parece un compenente impresionante y de mucha ayuda para cualquier tipo de proyectos
    - alex zamora, 11 months ago
    Flag review
    Was this helpful? Yes No