Skip to content

page7/tinymce-quick-upload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

tinymce-quick-upload

A quick-upload plugin of tinymce.

How to use

  1. download quickupload folder, and save it in tinymce plugins path.

  2. download and include plupload.

    <script src="../tinymce-path/tinymce.min.js"></script>
    <script src="../plupload-path/plupload.full.min.js"></script>
  3. add plugin "quickupload", and add button "quickupload".

    tinymce.init({
    	selector: "textarea",
    	plugins: ["quickupload"],
    	toolbar: "quickupload",
    	......
    });
  4. setting upload options.

    tinymce.init({
    	.....
    	plupload_basepath	: "../plupload-path/",
    	upload_url			: "../upload.php",
    	upload_post_params	: {action:"upload"},
    	upload_file_size	: '1mb',
    	upload_callback		: function(res, file, up) {
    		if (res.status == 200)
    			return res.response;  //image path
    		else
    			return false;
    	}
    	upload_error		: function(err, up) {
    		// error.status  error.message
    	}
    });

About

tinymce's plugin, quick upload image by plupload

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published