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

4 posts, 0 answers
  1. Mahesh
    Mahesh avatar
    2 posts
    Member since:
    Oct 2013

    Posted 24 Oct 2013 Link to this post

    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>
  2. Ianko
    Admin
    Ianko avatar
    1940 posts

    Posted 28 Oct 2013 Link to this post

    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.
  3. Mahesh
    Mahesh avatar
    2 posts
    Member since:
    Oct 2013

    Posted 18 Nov 2013 Link to this post

    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>

     

  4. Ianko
    Admin
    Ianko avatar
    1940 posts

    Posted 20 Nov 2013 Link to this post

    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.
Back to Top