TinyMCE (3.x) Image Manager And Editor

TinyMCE (3.x) Image Manager And Editor

Released 3 years ago , Last update 3 years ago

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

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
4.5
  • 5 8
  • 4 1
  • 3 2
  • 2 0
  • 1 0
11 Reviews Read Reviews

Pricing

FREE

GNU GPL

The GNU GPL is an open-source license.

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;
}

Visualisation

Plugin is using Twitter Bootstrap

All the documentations you can find here

Collaboration

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

License » GNU GPL Download

Get A Quote

What do you need?
  • Custom development
  • Integration
  • Customization / Reskinning
  • Consultation
When do you need it?
  • Soon
  • Next week
  • Next month
  • Anytime

Thanks for getting in touch!

Your quote details have been received and we'll get back to you soon.


Or enter your name and Email
  • WK Warsa Kumara 5 months ago
    its a very nice plugin for tynimce.
  • J j.ilchenko 10 months ago
    Hallo, we have some problems with this tool. We installed it on our server, but when we try to access the tool, we see the error Direct access to this location is not allowed! All the libraries are empty. Can you help?
  • J j.ilchenko 11 months ago
    Is it possible, that when we upload some fotos, the other one will be deleted?