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

[Solved] Full RadEditor with MOSS and Internet Explorer

3 Answers 137 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Shahid
Top achievements
Rank 1
Shahid asked on 27 Jan 2010, 10:35 PM
Hello,

I am testing the Full RadEditor for MOSS in list items, and it looks like it doesn't work in Internet Explorer 6 and 8 (I haven't tested with 7). More specifically the content of the RadEditor is never persisted.

However, it works fine with FireFox and Chrome.

Is anyone from Telerik aware of this issue?

Thanks in advance for your help,

Raphael.

3 Answers, 1 is accepted

Sort by
0
Stanimir
Telerik team
answered on 01 Feb 2010, 02:54 PM
Hello Raphael,
Could you provide us with the content that you are using for your tests. Also explain the problems in more details.
For example:
I paste in the editor such (...) code. When I toggle between Html and Design mode I get such (...) code. After I save the list the result code is (...).

All the best,
Stanimir
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Shahid
Top achievements
Rank 1
answered on 11 Feb 2010, 11:38 PM
Hi Stanimir,

Sorry for the late reply, but it took some time for me to find out what the issue is.

Basically, it all boils down the master page I use and for which you can find the code below.

What happens is that everytime I try to edit a blog post, I can never update the content of the blog if I use IE. If I use Firefox or Chrome, it works well. However, if I revert to the default master page, then the RadEditor for MOSS works as expected. Note that I am using the full version of the RadEditor for MOSS, not the Lite version.

Thanks in advance if you can track down what is missing in my master page,

Raphael.

<%-- Identifies this page as a .master page written in Microsoft Visual C# and registers tag prefixes, namespaces, assemblies, and controls. --%> 
<%@ Master Language="C#" %> 
<%@ Import Namespace="Microsoft.SharePoint" %> 
<%@ Register TagPrefix="SPSWC" Namespace="Microsoft.SharePoint.Portal.WebControls" 
    Assembly="Microsoft.SharePoint.Portal, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" 
    Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Register TagPrefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" 
    Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Register TagPrefix="PublishingWebControls" Namespace="Microsoft.SharePoint.Publishing.WebControls" 
    Assembly="Microsoft.SharePoint.Publishing, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Register TagPrefix="PublishingNavigation" Namespace="Microsoft.SharePoint.Publishing.Navigation" 
    Assembly="Microsoft.SharePoint.Publishing, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Register TagPrefix="wssuc" TagName="Welcome" Src="~/_controltemplates/Welcome.ascx" %> 
<%@ Register TagPrefix="wssuc" TagName="DesignModeConsole" Src="~/_controltemplates/DesignModeConsole.ascx" %> 
<%@ Register TagPrefix="PublishingVariations" TagName="VariationsLabelMenu" Src="~/_controltemplates/VariationsLabelMenu.ascx" %> 
<%@ Register TagPrefix="PublishingConsole" TagName="Console" Src="~/_controltemplates/PublishingConsole.ascx" %> 
<%@ Register TagPrefix="PublishingSiteAction" TagName="SiteActionMenu" Src="~/_controltemplates/PublishingActionMenu.ascx" %> 
<%@ Register Assembly="Telerik.Web.UI, Version=2009.3.1314.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" 
    Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
<%-- Uses the Microsoft Office namespace and schema. --%> 
<html> 
<%-- When loading the body of the .master page, SharePoint Server 2007 also loads the SpBodyOnLoadWrapper class. This class handles .js calls for the master page. --%> 
<body onload="javascript:_spBodyOnLoadWrapper();">  
    <form id="Form1" style="text-align: center" runat="server" onsubmit="return _spFormOnSubmitWrapper();">  
        <SharePoint:RobotsMetaTag ID="RobotsMetaTag1" runat="server" /> 
        <%-- The head section includes a content placeholder for the page title and links to CSS and ECMAScript (JScript, JavaScript) files that run on the server. --%> 
        <head id="Head1" runat="server">  
 
            <script type="text/javascript">         
             
        function replaceOnKeyPress()  
        {               
          
             var myid = '';  
            var mysubmitid = '';                      
            myid = "ctl00_PlaceHolderSearchArea_SearchBox_S622C1022_InputKeywords";  
            var myIdElements = new Array();                                                         
            myIdElements = myid.split('_');   
            mysubmitid = myIdElements[myIdElements.length - 2];  
            var theFunction = mysubmitid + "_Submit();";  
            var theInputID = myid;                                     
            var txt = document.getElementById(theInputID);  
            var browser=navigator.appName;  
            if (txt && (browser == "Netscape"))  
            {  
                txt.onkeypress = function(e)  
                {  
                    var key = String.fromCharCode(e.keyCode);  
 
                    if (key == "\n" || key == "\r")  
                    {  
                        eval(theFunction);  
                        return false;      
                    }   
                }  
            }                                
        }  
 
        replaceOnKeyPress();                                        
            </script> 
 
            <asp:ContentPlaceHolder runat="server" ID="head">  
                <title> 
                    <asp:ContentPlaceHolder ID="PlaceHolderPageTitle" runat="server" /> 
                </title> 
            </asp:ContentPlaceHolder> 
            <SharePoint:CssLink ID="CssLink1" runat="server" /> 
            <SharePoint:ScriptLink ID="ScriptLink1" Language="javascript" Name="core.js" Defer="true" runat="server" /> 
            <link href="<% $SPUrl:~sitecollection/Style%20Library/snpsMenu.css %>" rel="stylesheet" 
                type="text/css" /> 
            <link href="<% $SPUrl:~sitecollection/Style%20Library/snpsworld3.css %>" rel="stylesheet" 
                type="text/css" /> 
            <link href="<% $SPUrl:~sitecollection/Style%20Library/swbranding.css %>" rel="stylesheet" 
                type="text/css" /> 
            <SharePoint:Theme ID="Theme1" runat="server" /> 
            <asp:ContentPlaceHolder ID="PlaceHolderAdditionalPageHead" runat="server" /> 
            <SharePoint:DelegateControl ID="DelegateControl1" runat="server" ControlId="AdditionalPageHead" AllowMultipleControls="true" /> 
        </head> 
        <%-- When loading the body of the .master page, SharePoint Server 2007 also loads the SpBodyOnLoadWrapper class. This class handles .js calls for the master page. --%> 
        <%-- The SPWebPartManager manages all of the Web part controls, functionality, and events that occur on a Web page. --%> 
        <WebPartPages:SPWebPartManager ID="w" runat="server" /> 
        <%--        <telerik:RadScriptManager runat="server" ID="r">  
        </telerik:RadScriptManager>--%> 
        <telerik:RadStyleSheetManager runat="server" ID="s">  
        </telerik:RadStyleSheetManager> 
        <table cellspacing="0" cellpadding="0" style="width: 100%; height: 100%">  
            <tr> 
                <td style="width: 50px">  
                </td> 
                <td> 
                    <table cellpadding="0" cellspacing="0" class="FullTable" style="height: 100%; width: 100%;  
                        background-color: #f1f1f1"> 
                        <tr> 
                            <td class="sidespacermainleft" valign="top">  
                            </td> 
                            <td valign="top">  
                                <table cellpadding="0" cellspacing="0" class="FullTable">  
                                    <tr> 
                                        <td valign="top">  
                                            <!--Authentication for Authors only--> 
                                            <table cellpadding="0" cellspacing="0" class="FullTable">  
                                                <tr> 
                                                    <td valign="top" align="right" width="600" style="height: 15px">  
                                                    </td> 
                                                    <td valign="top" align="left" class="ms-globallinks" nowrap="nowrap" style="height: 15px;  
                                                        width: 100%"> 
                                                        &nbsp;</td> 
                                                    <td valign="top" align="left" width="5px" style="height: 15px">  
                                                    </td> 
                                                    <td valign="top" align="right" class="ms-globallinks" nowrap="nowrap" style="height: 15px">  
                                                        <wssuc:welcome id="explitLogout" runat="server" /> 
                                                    </td> 
                                                    <td valign="top" align="right" class="siteActionMenu" style="height: 15px">  
                                                        <PublishingSiteAction:siteactionmenu runat="server" /> 
                                                    </td> 
                                                </tr> 
                                                <tr> 
                                                    <td valign="top" align="left" colspan="4">  
                                                        <PublishingWebControls:AuthoringContainer ID="authoringcontrols" runat="server">  
                                                            <PublishingConsole:Console runat="server" /> 
                                                        </PublishingWebControls:AuthoringContainer> 
                                                    </td> 
                                                </tr> 
                                            </table> 
                                        </td> 
                                    </tr> 
                                </table> 
                                <table cellpadding="0" cellspacing="0" class="FullTable">  
                                    <tr> 
                                        <td class="logonavcontainer">  
                                            <table cellpadding="0" cellspacing="0" class="FullTable">  
                                                <tr> 
                                                    <td style="width: 314px">  
                                                        <asp:ContentPlaceHolder ID="PlaceHolderLogo" runat="server">  
                                                            <SharePoint:SPLinkButton ID="SPLinkButton1" runat="server" NavigateUrl="<% $SPUrl:~sitecollection/ %>">  
                                                                <SharePoint:SiteLogoImage ID="onetidHeadbnnr0" LogoImageUrl="<% $SPUrl:~sitecollection/_layouts/Images/sw/logo.png %>" 
                                                                    runat="server" /></SharePoint:SPLinkButton> 
                                                        </asp:ContentPlaceHolder> 
                                                    </td> 
                                                    <td style="width: 5px">  
                                                    </td> 
                                                    <td style="text-align: left" align="left">  
                                                        <table cellpadding="0" cellspacing="0" class="FullTable">  
                                                            <tr> 
                                                                <td class="topnavleft" style="width: 6px">  
                                                                </td> 
                                                                <td class="topnavmiddle">  
                                                                    <!-- fix for RadMenu CSS conflict when used in SharePoint --> 
                                                                    <table cellpadding="0" cellspacing="0" class="FullTable">  
                                                                        <tr> 
                                                                            <td id="qsfexWrapper">  
                                                                                <asp:ContentPlaceHolder ID="PlaceHolderTopNav" runat="server">  
                                                                                    <SharePoint:AspMenu ID="TopNavigationMenu" runat="server" DataSourceID="topSiteMap" 
                                                                                        EnableViewState="false" AccessKey="<%$Resources:wss,navigation_accesskey%>" Orientation="Horizontal" 
                                                                                        StaticDisplayLevels="2" MaximumDynamicDisplayLevels="0" DynamicHorizontalOffset="0" 
                                                                                        StaticPopOutImageUrl="/_layouts/images/menudark.gif" StaticPopOutImageTextFormatString="" 
                                                                                        DynamicHoverStyle-BackColor="#CBE3F0" SkipLinkText="" StaticSubMenuIndent="0" 
                                                                                        CssClass="qsfexMenu">  
                                                                                        <StaticMenuStyle /> 
                                                                                        <StaticMenuItemStyle CssClass="qsnav" ItemSpacing="0px" /> 
                                                                                    </SharePoint:AspMenu> 
                                                                                    <PublishingNavigation:PortalSiteMapDataSource ID="topSiteMap" runat="server" SiteMapProvider="CombinedNavSiteMapProvider" 
                                                                                        EnableViewState="true" StartFromCurrentNode="true" StartingNodeOffset="0" ShowStartingNode="true" 
                                                                                        TreatStartingNodeAsCurrent="true" TrimNonCurrentTypes="Heading" /> 
                                                                                      
                                                                                </asp:ContentPlaceHolder> 
                                                                            </td> 
                                                                        </tr> 
                                                                    </table> 
                                                                </td> 
                                                                <td class="topnavright">  
                                                                    <table cellpadding="0" cellspacing="0" class="FullTable">  
                                                                        <tr> 
                                                                            <td> 
                                                                                <asp:ContentPlaceHolder ID="PlaceHolderSearchArea1" runat="server">  
                                                                                    <div onkeypress="replaceOnKeyPress()">  
                                                                                        <SPSWC:SearchBoxEx ID="SearchBox" RegisterStyles="false" TextBeforeDropDown="" CssClass="search" 
                                                                                            TextBoxWidth="140" GoImageUrl="<% $SPUrl:~sitecollection/_layouts/Images/sw/searchArrowSW.gif %>" 
                                                                                            GoImageUrlRTL="<% $SPUrl:~sitecollection/_layouts/Images/sw/searchArrowSW.gif %>" 
                                                                                            GoImageActiveUrl="<% $SPUrl:~sitecollection/_layouts/Images/sw/searchArrowSW.gif %>" 
                                                                                            GoImageActiveUrlRTL="<% $SPUrl:~sitecollection/_layouts/Images/sw/searchArrowSW.gif %>" 
                                                                                            UseSiteDefaults="true" DropDownMode="HideScopeDD" SuppressWebPartChrome="true" 
                                                                                            runat="server" WebPart="true" /> 
                                                                                    </div> 
                                                                                </asp:ContentPlaceHolder> 
                                                                            </td> 
                                                                        </tr> 
                                                                    </table> 
                                                                </td> 
                                                            </tr> 
                                                            <tr> 
                                                                <td colspan="3">  
                                                                    <table cellpadding="0" cellspacing="0" class="FullTable">  
                                                                        <tr> 
                                                                            <td width="100%" class="navshadow">  
                                                                            </td> 
                                                                        </tr> 
                                                                    </table> 
                                                                </td> 
                                                            </tr> 
                                                        </table> 
                                                    </td> 
                                                </tr> 
                                            </table> 
                                            <table cellpadding="0" cellspacing="0" class="FullTable">  
                                                <tr> 
                                                    <td> 
                                                        <table cellpadding="0" cellspacing="0" class="FullTable">  
                                                            <tr> 
                                                                <td class="breadcrumb">  
                                                                </td> 
                                                            </tr> 
                                                        </table> 
                                                    </td> 
                                                </tr> 
                                            </table> 
                                            <table cellpadding="0" cellspacing="0" class="FullTable">  
                                                <tr> 
                                                    <td id="TitleAreaFrameClass">  
                                                        <asp:ContentPlaceHolder ID="PlaceHolderTitleLeftBorder" runat="server">  
                                                            <div> 
                                                            </div> 
                                                        </asp:ContentPlaceHolder> 
                                                    </td> 
                                                </tr> 
                                                <tr> 
                                                    <td valign="top" id="onetidPageTitleAreaFrame">  
                                                        <table id="onetidPageTitleAreaTable" cellpadding="0" cellspacing="0" class="FullTable">  
                                                            <tr> 
                                                                <td valign="top" class="ms-titlearea">  
                                                                    <asp:ContentPlaceHolder ID="PlaceHolderTitleBreadcrumb" runat="server">  
                                                                        <asp:SiteMapPath SiteMapProvider="SPContentMapProvider" ID="ContentMap" SkipLinkText="" 
                                                                            NodeStyle-CssClass="ms-sitemapdirectional" runat="server" /> 
                                                                        &nbsp;  
                                                                    </asp:ContentPlaceHolder> 
                                                                </td> 
                                                                <td class="ms-titlearearight">  
        <asp:ContentPlaceHolder id="PlaceHolderMiniConsole" runat="server"/>  
        </td> 
                                                            </tr> 
                                                            <tr> 
                                                                <td colspan="2" height="100%" valign="top" id="onetidPageTitle" class="ms-pagetitle">  
                                                                    <h2 class="ms-pagetitle">  
                                                                        <asp:ContentPlaceHolder ID="ContentPlaceHolder3" runat="server" /> 
                                                                    </h2> 
                                                                </td> 
                                                            </tr> 
                                                        </table> 
                                                    </td> 
                                                </tr> 
                                                <tr> 
                                                    <td> 
                                                        <table class="FullTable" cellpadding="0" cellspacing="0">  
                                                            <tr> 
                                                                <asp:ContentPlaceHolder ID="LeftNavPlaceHolder" runat="server">  
                                                                    <td class="featuresvalign">  
                                                                        <table class="featureswidth" cellpadding="0" cellspacing="0" border="0">  
                                                                            <tr> 
                                                                                <td class="leftnavtop">  
                                                                                    <div class="NavigationHeader">  
                                                                                        <asp:ContentPlaceHolder ID="HeaderFeatures" runat="server" /> 
                                                                                    </div> 
                                                                                    <div class="accordioncontainer">  
                                                                                        <asp:ContentPlaceHolder ID="PlaceHolderQuickLaunch" runat="server" /> 
                                                                                        <asp:ContentPlaceHolder ID="PlaceHolderFeatures" runat="server" /> 
                                                                                    </div> 
                                                                                </td> 
                                                                            </tr> 
                                                                            <tr> 
                                                                                <td class="leftnavbottom">  
                                                                                </td> 
                                                                            </tr> 
                                                                        </table> 
                                                                        <table width="185px" cellpadding="0" cellspacing="0" border="0">  
                                                                            <tr> 
                                                                                <td> 
                                                                                    <asp:ContentPlaceHolder ID="PlaceHolderAdRotator" runat="server" /> 
                                                                                </td> 
                                                                            </tr> 
                                                                        </table> 
                                                                    </td> 
                                                                </asp:ContentPlaceHolder> 
                                                                <td align="left">  
                                                                    <table cellpadding="0" cellspacing="0" class="FullTable">  
                                                                        <tr> 
                                                                            <td valign="top">  
                                                                                <asp:ContentPlaceHolder ID="PlaceHolderMain" runat="server">  
                                                                                </asp:ContentPlaceHolder> 
                                                                            </td> 
                                                                        </tr> 
                                                                    </table> 
                                                                </td> 
                                                            </tr> 
                                                        </table> 
                                                    </td> 
                                                </tr> 
                                            </table> 
                                <table cellpadding="0" cellspacing="0" class="FullTable">  
                                    <tr> 
                                        <td align="center">  
                                            <table cellpadding="0" cellspacing="0" class="FullTable">  
                                                <tr> 
                                                    <td class="Footer">  
                                                        <id="A1" runat="server" href="<% $SPUrl:~sitecollection/help/Lists/user feedback/NewForm.aspx %>">  
                                                            Feedback</a> 
                                                    </td> 
                                                </tr> 
                                            </table> 
                                        </td> 
                                    </tr> 
                                </table> 
                            </td> 
                            <td class="sidespacermainright" valign="top">  
                            </td> 
                        </tr> 
                    </table> 
                    <%-- The PlaceHolderMain content placeholder defines where to place the page content for all the content from the page layout. The page layout can overwrite any content placeholder from the master page. Example: The PlaceHolderLeftNavBar can overwrite the left navigation bar. --%> 
                    <asp:Panel ID="Panel1" Visible="false" runat="server">  
                        <%-- These ContentPlaceHolders ensure all default SharePoint Server pages render with this master page. If the system master page is set to any default master page, the only content placeholders required are those that are overridden by your page layouts. --%> 
                        <asp:ContentPlaceHolder ID="PlaceHolderPageTitleInTitleArea" runat="server" /> 
                        <asp:ContentPlaceHolder ID="PlaceHolderTitleRightMargin" runat="server" /> 
                        <asp:ContentPlaceHolder ID="PlaceHolderLeftNavBar" runat="server" /> 
                        <asp:ContentPlaceHolder ID="PlaceHolderPageImage" runat="server" /> 
                        <asp:ContentPlaceHolder ID="PlaceHolderBodyLeftBorder" runat="server" /> 
                        <asp:ContentPlaceHolder ID="PlaceHolderNavSpacer" runat="server" /> 
                        <asp:ContentPlaceHolder ID="PlaceHolderTitleAreaSeparator" runat="server" /> 
<%--                        <asp:ContentPlaceHolder ID="PlaceHolderMiniConsole" runat="server" /> 
--%>                        <asp:ContentPlaceHolder ID="PlaceHolderCalendarNavigator" runat="server" /> 
                        <asp:ContentPlaceHolder ID="PlaceHolderLeftActions" runat="server" /> 
                        <asp:ContentPlaceHolder ID="PlaceHolderPageDescription" runat="server" /> 
                        <asp:ContentPlaceHolder ID="PlaceHolderBodyAreaClass" runat="server" /> 
                        <asp:ContentPlaceHolder ID="PlaceHolderTitleAreaClass" runat="server" /> 
                        <asp:ContentPlaceHolder ID="PlaceHolderBodyRightMargin" runat="server" /> 
                        <asp:ContentPlaceHolder ID="PlaceHolderSearchArea" runat="server" Visible="false">  
                            <SharePoint:DelegateControl ID="DelegateControl2" runat="server" ControlId="SmallSearchInputBox" /> 
                        </asp:ContentPlaceHolder> 
                    </asp:Panel> 
                </td> 
            </tr> 
        </table> 
        </td><td style="width: 50px">  
        </td> 
        </tr></table>  
    </form> 
</body> 
</html> 
 
0
Stanimir
Telerik team
answered on 17 Feb 2010, 08:21 AM
Hi Raphael,
Could you confirm that there are no javascript errors on the page when you are using the custom master page? If there are errors they are braking the functionality of the RadEditor, which is transferring the content of the editor to the field, which MOSS uses for saving in the data base.

Sincerely yours,
Stanimir
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Editor
Asked by
Shahid
Top achievements
Rank 1
Answers by
Stanimir
Telerik team
Shahid
Top achievements
Rank 1
Share this question
or