More in this section

Forums / Developing with Sitefinity / Integrating Images/Documents Library with RadEditor

Integrating Images/Documents Library with RadEditor

6 posts, 0 answered
  1. Dave
    Dave avatar
    76 posts
    Registered:
    10 Mar 2008
    21 Mar 2008
    Link to this post
    Is there a (relatively) simple way to integrate the Images/Documents Library with the RadEditor's FileBrowser Dialogs?
  2. Rebecca
    Rebecca avatar
    536 posts
    Registered:
    24 Sep 2012
    24 Mar 2008
    Link to this post
    Hello Dave,

    Since the introduction of the Images & Documents module and the release of Sitefinity 3.2, we implemented and enabled by default 3 new dialogs to substitute the original RadEditor dialogs for managing images, documents and links.
    Here is a table I hope you find useful. Note that the icons for the pairs of tools are the same.

    Name of tool

    How to enable in the EditorToolsFile.xml file

    Enabled by default

    Insert an image

    <tool name="LibraryImageManager" text="Insert an image"/>

    Yes

    Image Manager

    <tool name="ImageManager" shortcut="CTRL+G"/>

    No

    Insert a document

    <tool name="LibraryDocumentManager" text="Insert a document"/>

    Yes

    Document Manager

    <tool name="DocumentManager" />

    No

    Insert a link

    <tool name="SitefinityLinkManager" text="Insert a link"/>

    Yes

    Hyperlink Manager

    <tool name="LinkManager" shortcut="CTRL+K"/>

    No


    The tools are enabled in the ~/Sitefinity/Admin/ControlTemplates/EditorToolsFile.xml file.
    Let us know if we haven't understood your inquiry correctly.

    Regards,
    Rebecca
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. Dave
    Dave avatar
    76 posts
    Registered:
    10 Mar 2008
    24 Mar 2008
    Link to this post
    Thanks very much Rebecca.  When I load a RadEditor, the three corresponding icons are the default "i bubble", and clicking them yields the message "The command LibraryImageManager is not implemented yet."  I noticed in the Generic_Content EditorTemplate.ascx control there are several javascript functions, do these need to be included?
  4. Dave
    Dave avatar
    76 posts
    Registered:
    10 Mar 2008
    24 Mar 2008
    Link to this post
    Also... looking at the Generic Content form as an example, it doesn't seem there is a way to constrain which libraries the user has to choose from (like you can with the upload path).  Is this possible?
  5. Rebecca
    Rebecca avatar
    536 posts
    Registered:
    24 Sep 2012
    24 Mar 2008
    Link to this post
    Yes, Dave, you'll need to include those JavaScript functions in YourControl.ascx to make the new dialogs work.
    Sorry I didn't mention this in my previous post, I didn't realize you were talking about the RadEditor outside Sitefinity.
    From the Insert a document dialog, you are able to upload in documents and custom libraries. From the Insert an image dialog, you are able to upload in image libraries only.
    Currently, there is no way to restrict users from uploading in a certain library, as permissions per library are not implemented yet.

    In the official release of v3.2 you can use the Images & Documents module permissions and set the Create permission to Deny for a given user role. Users in this role will not be able to upload files at the Images & Documents tab. However, they'll be able to do so from the 2 editor dialogs. This has already been fixed for the upcoming SP1.

    All the best,

    Rebecca
    the Telerik team


    Instantly find answers to your questions at the new Telerik Support Center
  6. Dave
    Dave avatar
    76 posts
    Registered:
    10 Mar 2008
    24 Mar 2008
    Link to this post
    Thanks again!  I think we will end up using the original dialogs and restricting by path for now.
Register for webinar
6 posts, 0 answered