RadEditor image path issue

2 posts, 0 answers
  1. Bobi
    Bobi avatar
    4 posts
    Member since:
    Feb 2012

    Posted 28 Mar 2014 Link to this post

    Hello Support,

    I noticed some strange behavior of RadEditor control. 
    I am trying to put the next image tag into Rad Editor content area (edit mode is HTML):
    <img src="#PATH#Upload/calendar.png" alt="" />
    On button click I want to store this value into a session. The problem is that it seems that page reloads on button click (I have IsPostBack check in OnInit event, and IsPostBack is false). Since I need session to be cleared in OnInit, you realize that all session data are lost. This page reload occurs even I change EditMode from HTML to Design, and inversely. The issue doesn't happen if I change "#PATH#" with "PATH#".
    This is the source of RadEditor control:
    <telerik:RadEditor ID="editorDroplistItemValue" runat="server" ToolbarMode="Default"
        EditModes="Design, Preview, HTML" Skin="Simple" ContentFilters="None" NewLineMode="Br"
        Height="315" Width="640px" EnableResize="false" ToolsFile="~/Admin/Controls/ToolsFileFull.xml">
        <Content>
        </Content>
        <CssFiles>
        <telerik:EditorCssFile Value="../../css/RadEditorCSS.css" />
        </CssFiles>
    </telerik:RadEditor>
  2. Ianko
    Admin
    Ianko avatar
    1535 posts

    Posted 01 Apr 2014 Link to this post

    Hi Bobi,

    It would be better if you could provide a simple project that demonstrates the implemented logic, so that it could be locally investigated.

    Currently I can only make assumptions on how the saving/loading is implemented and how the button triggers this logic. Also the type of the button, is it a RadButton or the built-in ASP:Button control?

    Regards,
    Ianko
    Telerik
     

    Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET.. Seats are limited.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top