This package contains all the files needed to add rich text editing and file upload/management to your website. It also includes HTML demos, a PHP based GUI for configuring basic features, and a demo using PHP functions to add the rich text editor to the page.
elRTE was built using JavaScrip, jQuery and jQuery UI so all it needs is for you to use a modern browser. It has been tested in Firefox 3.5+, Internet Explorer 7 & 8, Safari 4, Opera 10 and Chrome.
The image preview and thumbnails creation requires:
The default language is English.
elRTE and elFinder are issued under a 3-clauses BSD license by Studio 42.
elRTE and elFinder use and come with jQuery and jQuery-UI which are issued under MIT and GPL licenses.
All the demos included use PHP but most can be quickly changed to work with Python.
Extract files to PHP server.
If you place it in the root directory of localhost so that readme.txt is located at http://localhost/rte-fileupload/readme.txt it should work right out of the box. If you extract it to a different directory you will have to edit connectors/php/connector.php so that "root" and "URL" point correctly in relation to where you located it.
At this point you are ready to start looking at the demos. Start with demos/index.html
Setup is the same as with PHP except that you will be using connectors/python/connectors.py instead of the PHP connector.
To get the demos working you will have to replace each link to the PHP connector (connectors/php/connector.php) with the Python connector (connectors/python/connectors.py).
The demos that you can easily get working in Python all end in ".html". The ones that rely heavily on PHP end in ".php".
All demos are located in the sub-folder demos/
The standard demo is of a text area with rich edit and image upload. It is called:
If you have a text field in which you want the URL of an uploaded image (or other file) look at this demo:
If you want both the text area and text field on the same page (or in the same form) look at this demo:
If you need multiple of either this demo has two of each:
Also included is a PHP based GUI for setting some of the common setting for the rich text editor and getting an immediate look at that implementation. It gives you three views, the graphic look, the JS and CSS includes and scripts needed to implement your chosen setting, and the full code of a demo page using those settings. It is called:
Finally there is some demo PHP code that calls a function to fill out the head and insert the form. The functions were built for a specific use-case so you will probably have to write your own for your project but it may give you some ideas. This is called:
rte-text_field.php and calls app/functions.php for the functions.
To get this rich text editor working on your project include this code in the head of your html document along with your other js or css files
Open js/elrte-elfinder.js and change connectors/php/connector.php to connectors/python/connector.py if using Python.
Also change "˜#editor' to the id of the text area you want rich edit on.
Adjust any other settings to suit your needs.
Also configure connectors/php/connector.php (or connectors/python/connector.py) if needed.
The complete documentation for both the rich text editor and the file manager/explorer/uploader are available on their respective websites: