1

Topic: Text Field value attribute not being changed...

There seems to be a possible bug in how url's are returned to text fields in the newest version.

Under the old version we had a text field that would make an onChange call whenever the filemanager returned a value to it, and it worked fine.  Under the newest version the "text" of the url shows up in the text field, but the value attribute doesn't get changed and therefor the onChange call never happens.

We wanted to use the onChange function verses a onInsert call within the browse call because we needed to send through other script based parameters.

We have tried this with both the mcFilemanager.browse and .open calls, and get the same results with both.


Thanks!

2

Re: Text Field value attribute not being changed...

This will be fixed in the next release.

Best regards,
Spocke - Main developer of TinyMCE

3

Re: Text Field value attribute not being changed...

Hi - I have the same issue and am wondering if there was a set release date yet with the fix or sctteea if you found a workaround in the meantime. I have been looking through the forums and have tried various things but because I am a beginner with web development I have not been able to quite get things to work. I am currently supporting a php applicaiton that has an onchange event within the textarea definition. It was working until I implemented tinymce which as stated above has caused the event to not fire any longer. The java function basically sets a variable with the parameter that is passed into it.

Thank you for any information on the timing of the fix or a workaround!

4

Re: Text Field value attribute not being changed...

1) Java is not Javascript.
2) Don't no what textarea you are referring to. The one that gets replaced with TinyMCE, if so the onchange event wont be fired?

Best regards,
Spocke - Main developer of TinyMCE

5

Re: Text Field value attribute not being changed...

Hi - sorry I meant javascript for the function call.

From your statement though I may be looking in the wrong place. The code is:

Within the code: <textarea name="$fieldname"  onChange="trackUpdate('$fieldname');" rows="$rows" cols="130" >" . stripslashes($note_text) . "</textarea>

Which does not work with TinyMCE - if I adjust the TinyMCE init using onchange_callback to reference the trackUpdate onchange function, how do I pass in the $fieldname parameter which is basically set in a line above. The page is actually looping through multiple notes and allowing the user to adjust them. There is a final save or submit button that only saves the textarea input fields that were adjusted. 

I've been looking at the documentation on looking at and setting isDirty although everything else with TinyMCE has been very easy and straight-forward to configure so I think I must be missing something here that allows the logic to continue to work. Thank you for your time and response above.

6

Re: Text Field value attribute not being changed...

This is off topic form the FileManager support. The check the onChange events or similar in the TinyMCE documentation.

Best regards,
Spocke - Main developer of TinyMCE

7

Re: Text Field value attribute not being changed...

Thank you - will continue to do so!