+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / New button for RadEditor - lost of focus

New button for RadEditor - lost of focus

9 posts, 0 answered
  1. Petr
    Petr avatar
    34 posts
    Registered:
    03 Jan 2011
    20 Jan 2011
    Link to this post
    Hi all,

    thanks fot this amazing forum  - thanks to it I was able to solve a lot of issues.

    However, now I'm fighting with integration of new button into Telerik RadEditor (GenericContentDesigner) in Sitefinity. I'm able to put there new button, which will open new window.But, this window hasn't got focus - I've tried to call focus method, but still the same problem.

    Have you got any idea, how to solve it? I need to trasnfer to the RadEditor url of some content
    url of selected image) and then use editor's PasteHtml method. Is the problem calling external url (all pages are on same domain, of course, due to xss). Or is another recommend way how to integrate another app into SF editor.

    Thanks

    Petr
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    21 Jan 2011
    Link to this post
    Hello Petr,

    You could try opening the tool in a RadWindow. Here is a demo that illustrates similar behavior.

    All the best,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Petr
    Petr avatar
    34 posts
    Registered:
    03 Jan 2011
    21 Jan 2011
    Link to this post
    Thanks for tip, unfortunately I've read it already.

    But my problem is, that I need to open window with url outside sitefinity (another app on different server, but the same domain) and then from this app transfer one parametr (url of image) into RadEditor.

    Any idea?

    Thanks

    Petr
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    21 Jan 2011
    Link to this post
    Hi Petr,

    If the domain is the same there should not be a problem. You have to supply the full url of the page/control that will be opened by RadWindow control. This demo shows how to return values from the RadWindow. If the domain is not the same this is cross site scripting vulnerability.

    Best wishes,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  5. Petr
    Petr avatar
    34 posts
    Registered:
    03 Jan 2011
    30 Jan 2011
    Link to this post
    Hi Ivan,

    thanks for your answer. Please, could you help me, how to maximize this RadWindow? Now it is limited by size of GenericContentDesigner dialog.

    Thanks

    Petr
  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    01 Feb 2011
    Link to this post
    Hello Petr,

    Please check the attached screenshot that illustrates how to resize the window. The RadEditor is wrapped int he ControlDesigner which has its own RadWindow.

    You can use css to resize the ControlDesigner, but this will affect all dialogs. You can do this inside

    Sitefinity\Admin\Themes\Default\AjaxControlsSkins\Sitefinity\Window.css. You should set width and height for div.RadWindow.

    I suggest to use the first option ( check attached screenshot)

    Best wishes,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  7. Petr
    Petr avatar
    34 posts
    Registered:
    03 Jan 2011
    01 Feb 2011
    Link to this post
    Thaks, but I need to maximize this new window with external url. I know, that is possible to set size via properties, but I don't know, how to invoke Maximize proramatically (e.g. as property of new window).

    Thanks for help

    Petr
  8. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    01 Feb 2011
    Link to this post
    Hi Petr,

    These are the two options that you can use to resize the window. Generally you do not have access to the RadWindow object, so you cannot make changes programmatically to it.

    Greetings,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  9. Petr
    Petr avatar
    34 posts
    Registered:
    03 Jan 2011
    04 Mar 2011
    Link to this post
    Hi,

    unfortunately, I have still problems with XSS (cross site scripting): I'm calling webapp on same domain, but ondifferent server. If I set the domain before displaying RadWindow, I will receive Access Denied after closing of this window.
    If I do not anything with domain, it works (I'm able to close window and I don't receive any error message), but I'm not able to exchange data between the other app and rad window - due to XSS.

    Ani idea?

    Thanks

    Petr
Register for webinar
9 posts, 0 answered