<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<asp:Content ID="indexTitle" ContentPlaceHolderID="TitleContent" runat="server">
    Test Page
</asp:Content>

<asp:Content ID="indexContent" ContentPlaceHolderID="MainContent" runat="server">
       <form id="form1" runat="server">

    <h2>About</h2>
    <p>
        Put content here.aaaa
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
        <telerik:RadEditor ID="RadEditor1" ExternalDialogsPath="~/EditorDialogs"  DialogHandlerUrl="~/Telerik.Web.UI.DialogHandler.axd"  runat="server">
        </telerik:RadEditor>

    <script type="text/C#" runat="server">
        protected void Page_Load(object sender, EventArgs e)
        {
            RadEditor1.EditModes = EditModes.Design;
            
            string loggedUser = "Peter";
            string[] viewImages = new string[] { "~/Images/" + loggedUser };
            string[] uploadImages = new string[] { "~/Images/" + loggedUser };
            string[] deleteImages = new string[] { "~/Images/" + loggedUser };

            if (!IsPostBack)
            {
                RadEditor1.ImageManager.ViewPaths = viewImages;
                RadEditor1.ImageManager.UploadPaths = uploadImages;
                RadEditor1.ImageManager.DeletePaths = deleteImages;
            }
        }
    </script>
    </p>
    </form>
</asp:Content>
