Because I forgot it in the previous e-mail, here are the relevant versions.

MW: 1.18.1
SMW: 1.7.1
SF: 2.4.2
wikiEditor: 0.3.0
MsUpload: 9.2

--Ryan


On Aug 14, 2012, at 4:52 PM, Ryan Glasnapp wrote:

> 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

Reply via email to