Hi, I've been trying to figure out how to integrate MsUpload with wikiEditor and Semantic Forms, so that the the upload capabilities from MsUpload could be used in the free text field of SF.
I tried hooking MsUpload into sfModifyFreeTextField, but that doesn't seem to work quite right. The javascript in MsUpload appears to be trying to append elements to the wikiEditor menu directly, but in this case, it happens before the wikiEditor is fully loaded, so it doesn't actually create the elements. Is there a better place to hook into, where wikiEditor would have loaded properly? For reference, here's the first bit of MsUpload code that's not appending correctly when used with a form. function createUpload(wikiEditor){ if(wikiEditor==true){ //create upload button var upload_tab = $(document.createElement("span")).attr('class','tab tab-msupload').prependTo('#wikiEditor-ui-toolbar .tabs'); var upload_button = $(document.createElement("span")).attr({ id: "upload_select", title: mw.msg('msu-button_title') }).append('<img src="'+msu_vars.path+'/images/button_upload.gif">').appendTo(upload_tab); //create upload div var upload_container = $(document.createElement("div")).attr('id',"upload_container").insertAfter('#wikiEditor-ui-toolbar'); Thanks! --Ryan ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Semediawiki-devel mailing list Semediawiki-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/semediawiki-devel