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

need to suppress this alert("Error! Set EditorContentAreaMode to Iframe if you want to edit full page HTML");

3 Answers 154 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Mahesh
Top achievements
Rank 1
Mahesh asked on 24 Oct 2013, 11:17 AM
My requirement says that i need a editor to edit xslt file. Which is generated from the database and shown in radedtior content.
The end users are allowed to edit the design mode and are allowed to save the data back to the database.

When i use ContentAreaMode="Div" as soon as the page loads the above alert message gets triggered which i
don't wanted. kindly suggest me how to fix the above issue.
I want the ContentAreaMode="Div"
 




<%@ Page Title="" Language="C#" AutoEventWireup="true" MasterPageFile="~/MasterPages/Normal.Master"
  
CodeBehind="EditEmailTemplate.aspx.cs" Inherits="EditEmailTemplate"
  
ValidateRequest="false" %>
  
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
  
<%@ Register Src="~/UserControls/metadata.ascx" TagName="Meta" TagPrefix="VT" %>
  
<%@ Register Src="~/UserControls/BottomPageScripts.ascx" TagName="Tracking" TagPrefix="VT" %>
  
<%@ Register Src="~/UserControls/SecurityControl.ascx" TagName="Security" TagPrefix="VT" %>
  
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
  
<link href="App_Themes/Daimler/style.css" rel="stylesheet" type="text/css" />
  
</asp:Content>
  
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
  
<hr />
  
<asp:Panel runat="server" ID="pnlhead">
  
<div style="vertical-align: middle">
  
<table style="margin-left: 4%;" class="dashboard-advanced-search">
  
<tr>
  
<td style="vertical-align: middle; width: 8%" class="label">
  
<asp:Label ID="lblSub" runat="server" Text="Subject: "></asp:Label>
  
</td>
  
<td style="vertical-align: middle; width: 34%">
  
<asp:TextBox ID="txtSubject" runat="server" Style="width: 320px;"></asp:TextBox>
  
</td>
  
<td style="vertical-align: middle; width: 4%">
  
</td>
  
<td style="vertical-align: middle; width: 7%" class="label">
  
<asp:Label ID="lblType" runat="server" Text="Name: "></asp:Label>
  
</td>
  
<td style="vertical-align: middle; width: 42%">
  
<asp:TextBox ID="txtType" runat="server" Style="width: 260px;"></asp:TextBox>
  
</td>
  
</tr>
  
</table>
  
</div>
  
</asp:Panel>
  
<hr />
  
<asp:Panel ID="Panel1" runat="server" HorizontalAlign="Center" Width="94%">
  
<asp:Label ID="lblMessage" runat="server" Text="Record saved successfully." Visible="true"
  
Font-Bold="true" ForeColor="Green" Font-Size="Small"></asp:Label>
  
<br />
  
</asp:Panel>
  
</asp:Content>
  
<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder3" runat="server">
  
<div style="padding-left: 1%; padding-right: 1%;">
  
<telerik:RadTabStrip ID="tbtemplate" runat="server" MultiPageID="RadMultiPage1" Skin="Black"
  
SelectedIndex="0" OnTabClick="tbtemplate_TabClick" OnLoad="tbtemplate_Load">
  
<tabs>
  
<telerik:RadTab Text="XSLT" CssClass="tabStrip" Selected="True">
  
</telerik:RadTab>
  
<telerik:RadTab Text="Preview" CssClass="tabStrip">
  
</telerik:RadTab>
  
</tabs>
  
</telerik:RadTabStrip>
  
<div style="padding-bottom: 0.6%; padding-top: 0.3%;">
  
<asp:Panel ID="Panelbtn" runat="server" HorizontalAlign="Right" Width="98%">
  
<asp:ImageButton ID="btnSave" runat="server" ImageUrl="images/btn-save.png" OnClick="btnSave_Click" />
  
     
  
<asp:ImageButton ID="btnCancel" runat="server" ImageUrl="~/images/btn-cancel.png"
  
OnClick="btnCancel_Click" />
  
</asp:Panel>
  
</div>
  
<div>
  
<telerik:RadEditor ContentAreaMode="Div" runat="server" ID="RadEditor1" 
  
EditModes="Preview,Design" AutoResizeHeight="true" Height="715" >
  
<modules>
  
<telerik:EditorModule Enabled="false" Visible="false" />
  
  
</modules>
  
</telerik:RadEditor>
  
</div>
  
</div>
  
</asp:Content>

3 Answers, 1 is accepted

Sort by
0
Ianko
Telerik team
answered on 28 Oct 2013, 01:10 PM
Hello Mahesh,

The problem is not reproducible on my end.

Could you please try to reproduce the problem with this online demo and get back to me with the exact steps, so that I could investigate the problem on my end?

Regards,
Ianko
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
Mahesh
Top achievements
Rank 1
answered on 18 Nov 2013, 10:22 AM
I tried the online demo and one error message pop up is coming. However it is coming only first time if I click on design or preview it goes away. Try the below xslt file.

<?

 

xml version="1.0" encoding="utf-8"?><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl"><xsl:output method="html" indent="yes" /><xsl:template match="@* | node()"><html>

 

Application has sent details of an important message on

<

 

xsl:choose><xsl:when test="CustomerNumber=''">

 

PIN (Last 6)

<xsl:value-of select="Pin" /></xsl:when><xsl:otherwise>

 

unit #

<xsl:value-of select="CustomerNumber" />, VIN (Last 6) <xsl:value-of select="Vin" /></xsl:otherwise></xsl:choose>

 

to the Customer Support Center.

<

 

br /><br />

 

The code logged

<xsl:value-of select="Tn" />/<xsl:value-of select="Mi" />(TN/MI) indicates

 

<

 

br /><br />

 

"

<xsl:value-of select="FDescription" />".

 

<

 

br /><br />

 

This message indicates that....

<

 

br /><br />

 

The company will not be following up with this fault unless there is an excessive amount of occurrences.

<

 

br /><br />

 

If you are heading into a repair facility please contact us.

<

 

xsl:choose><xsl:when test="TicketNumber=''">

 

Please include event number

<xsl:value-of select="CaseNumber" /> when you call or write.

 

</

 

xsl:when><xsl:otherwise>

 

Please include ticket number

<xsl:value-of select="TicketNumber" /> and event number <xsl:value-of select="CaseNumber" /> when you call or write.

 

</

 

xsl:otherwise></xsl:choose><br /><br />

 

Thank you,

<

 

br />

 

Manager,

</

 

html></xsl:template></xsl:stylesheet>

 

0
Ianko
Telerik team
answered on 20 Nov 2013, 01:39 PM
Hi Mahesh,

The RadEditor control should be used only for Text and HTML editing. The provided XML format is not a supported one.

Please use the editor correspondingly to its designed purpose.

Regards,
Ianko
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Editor
Asked by
Mahesh
Top achievements
Rank 1
Answers by
Ianko
Telerik team
Mahesh
Top achievements
Rank 1
Share this question
or