diff options
Diffstat (limited to 'view/jot-header.tpl')
-rw-r--r-- | view/jot-header.tpl | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/view/jot-header.tpl b/view/jot-header.tpl index 7c17196ce..97e30cdae 100644 --- a/view/jot-header.tpl +++ b/view/jot-header.tpl @@ -2,7 +2,6 @@ src="$baseurl/tinymce/jscripts/tiny_mce/tiny_mce_src.js"></script> <script language="javascript" type="text/javascript"> - tinyMCE.init({ theme : "advanced", mode : "specific_textareas", @@ -19,10 +18,24 @@ tinyMCE.init({ add_unload_trigger : false, remove_linebreaks : false, content_css: "$baseurl/view/custom_tinymce.css" - - }); +</script> +<script type="text/javascript" src="include/ajaxupload.js" ></script> +<script> + $(document).ready(function() { + var uploader = new window.AjaxUpload( + 'wall-image-upload', + { action: 'wall_upload', + name: 'userfile', + onComplete: function(file,response) { + tinyMCE.execCommand('mceInsertRawHTML',false,response); + } + } + ); + + }); + </script> |