Hi
When I disable an upload field in Editor the clear button is not disabled (the upload button yes)
I do with "editor.disable('fieldname')"
How can I do to disable clear button?
Thanks
I think this is a bug. I made a test and experienced the same behavior. The clear button stays available. You can ask Allan to pay attention to this behavior.
Well, after thinking some more time I think it might be right this behavior. Let me explain. You are disabling the upload field and you really are not able to upload (read: change this field). That is expected and correct behavior.
But you are able to clear the image. And in fact, this might also be correct. Because in fact clear means deleting the image. As you can define a field as read-only but still can delete the row (and thus the field inclusive).
I understand your question very well, but now I think there might be a reason for this behavior.
Apologies - this one got lost in the mists of time. I've just committed a fix and it will be present in Editor 1.9.1 which we are going to tag and release before the end of the month.
Replies
I think this is a bug. I made a test and experienced the same behavior. The clear button stays available. You can ask Allan to pay attention to this behavior.
Well, after thinking some more time I think it might be right this behavior. Let me explain. You are disabling the upload field and you really are not able to upload (read: change this field). That is expected and correct behavior.
But you are able to clear the image. And in fact, this might also be correct. Because in fact clear means deleting the image. As you can define a field as read-only but still can delete the row (and thus the field inclusive).
I understand your question very well, but now I think there might be a reason for this behavior.
This product is full of interesting issues....
No - this is a bug. If the field is disabled, you shouldn't be able to change its value with the UI. I'll post back shortly with a fix.
Allan
Is there any new information on this available? How present the uploaded data without the possibility to delete the data?
Apologies - this one got lost in the mists of time. I've just committed a fix and it will be present in Editor 1.9.1 which we are going to tag and release before the end of the month.
Allan
Thx.