A TinyMCE image manager designed as a more minimal (and cheaper) alternative to the official image manager.
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).
The plug-in name is 'lioniteimages' and needs to be added to the plug-in list:
tinyMCE.init({
...
plugins : "bold,italic,underline,strikethrough,|,lioniteimages",
...
});
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;
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
}
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).
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).
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.
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).
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).
There are four connector scripts included with the plug-in:
A bit light, but works good and really easy to integrate
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.
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.
Questions & Comments