A quick-upload plugin of tinymce.
-
download quickupload folder, and save it in tinymce plugins path.
-
download and include plupload.
<script src="../tinymce-path/tinymce.min.js"></script> <script src="../plupload-path/plupload.full.min.js"></script>
-
add plugin "quickupload", and add button "quickupload".
tinymce.init({ selector: "textarea", plugins: ["quickupload"], toolbar: "quickupload", ...... });
-
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 } });