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

RadEditor image path issue

1 Answer 41 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Bobi
Top achievements
Rank 1
Bobi asked on 28 Mar 2014, 03:00 PM
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>

1 Answer, 1 is accepted

Sort by
0
Ianko
Telerik team
answered on 01 Apr 2014, 08:23 AM
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.

 
Tags
Editor
Asked by
Bobi
Top achievements
Rank 1
Answers by
Ianko
Telerik team
Share this question
or