This is a migrated thread and some comments may be shown as answers.

Selecting Image Properties, Selecting new Image Src - Src value not changed

1 Answer 27 Views
Editor
This is a migrated thread and some comments may be shown as answers.
LeBear
Top achievements
Rank 1
LeBear asked on 29 Feb 2012, 06:54 PM
Hello,

I've just started experiencing this.  I have an Editor on a page.  I go to HTML view, paste in some HTML, which includes an image, then switch to DESIGN view, right click on the image, select Properties, and then for the Image Src, I browse to select a replacement image.  When I select it and click OK, it does NOT replace the value in the Image Src field.  To get this to work, I have to clear the Image Src value, then browse and select the image.

Any ideas?  Need more information?

Thank you.

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 02 Mar 2012, 09:40 AM
Hello,

I was unable to reproduce the browser caching issue, but I would suggest the following fix for it.

1) register the external dialogs of RadEditor (ExternalDialogsPath="~/EditorDialogs")
2) open the SetImageProperties.ascx file and modify the _insertClickHandler function as follow:

_insertClickHandler: function (e) {
    var image = this.getModifiedImage();
    if (image) {
        var arg = new Telerik.Web.UI.EditorCommandEventArgs("SetImageProperies", null, image)
        arg.get_value().src = arg.get_value().src + "?param=" + Math.random();
        Telerik.Web.UI.Dialogs.CommonDialogScript.get_windowReference().close(arg);
    }

3) Save the file, clear the browser cache and test the solution.

Kind regards,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Editor
Asked by
LeBear
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or