1

Topic: McFileManager doesn't seem to work when element_names is an integer

Hello,

I'm trying to integrate McFileManager (in standalone mode). I'm using this code :

mcFileManager.open('form82','198')

But when I want to insert a file, field content doesn't change. When I change field name to 't198' (just a try), it works.

It seems that McFileManager doesn't like integer field names. So my questions are : Is it a bug or not ? If yes, was it solved ? If no, is there anyone who can give me a solution ? Because I must use integer field names..

Thanks a lot

2

Re: McFileManager doesn't seem to work when element_names is an integer

Yes, 198 is not a valid form field name. Use an alpha numeric character first. You could try to use a custom insert callback function check the example page for details on that. Then insert the value manually some how, not sure though it that works since the fields are integers not sure how the browser would react.

Best regards,
Spocke - Main developer of TinyMCE

3

Re: McFileManager doesn't seem to work when element_names is an integer

Well, I found a solution. I use "198" for the input name and "m198" for the input id, it seems to work. Thank you for your answer.

4

Re: McFileManager doesn't seem to work when element_names is an integer

Yes, padding them would make valid id:s.

Best regards,
Spocke - Main developer of TinyMCE

5

Re: McFileManager doesn't seem to work when element_names is an integer

thanks for this tops. Has resolved a same trouble wink