When a Hyperlink element is set with an onclick handler, after passing through the Preview mode it is being stripped under IE7. Also related problem is that the link in the Preview mode are clickable and the URL set to the href attribute is opened in new tab/window. Possible solution for both bugs is to override the function responsible for the conversion of such attributes in the Preview mode with this JavaScript code: Telerik.Web.UI.Editor.Utils.setTargetsForPreview = function (editor) { var contentArea = editor.get_contentArea(); var links = contentArea.getElementsByTagName("A"); for (var i = 0, l = links.length; i < l; i++) { var link = links[i]; //handle targets var target = link.getAttribute("target"); if (target != null) { link.setAttribute("re_target", target); } if (target != "_blank") link.setAttribute("target", "blank"); //handle ckick event var oldOnClick = (link.getAttributeNode('onclick') && link.getAttributeNode('onclick').value) || link.getAttribute("onclick"); if (oldOnClick != null) { link.setAttribute('re_onclick', oldOnClick); } link.setAttribute('onclick', 'return false;'); if (typeof link.onclick === "string") { link.onclick = function () { return false; }; } } }; Telerik.Web.UI.Editor.Utils.restoreTargetsAfterPreview = function (editor) { var contentArea = editor.get_contentArea(); var links = contentArea.getElementsByTagName("A"); for (var i = 0, l = links.length; i < l; i++) { var link = links[i]; //handle targets var oldValue = link.getAttribute("re_target"); if (oldValue != null && oldValue != "null") { link.setAttribute("target", oldValue); } else { link.removeAttribute("target"); } //handle anchors urls var oldOnClick = link.getAttribute("re_onclick"); link.onclick = null; if (oldOnClick != null && oldOnClick != "null") { link.setAttribute('onclick', oldOnClick); } else { link.removeAttribute("onclick"); } link.removeAttribute("re_onclick"); link.removeAttribute("re_target"); } }; Note that this script must be placed in a script tag right after the RadEditor control.
The Advanced Mode (embed code) textbox in the Insert External Video dialog is always readonly and you cannot put the code in it. In the meantime you can use the following workaround that will access the textbox and remove the readonly attribute: <telerik:RadEditor ID="RadEditor1" runat="server" OnClientCommandExecuted="OnClientCommandExecuted"> <Tools> <telerik:EditorToolGroup> <telerik:EditorTool Name="InsertExternalVideo" /> </telerik:EditorToolGroup> </Tools> </telerik:RadEditor> <script type="text/javascript"> function OnClientCommandExecuted(sender, args) { if (args.get_commandName() == "InsertExternalVideo") { var extVideoDialog = sender.get_dialogOpener()._dialogContainers["InsertExternalVideo"]; if(extVideoDialog){ extVideoDialog.add_pageLoad(editTextbox); } } } function editTextbox(sender, args) { sender.get_contentFrame().contentWindow.document.getElementById("embedCode").removeAttribute("readonly"); sender.remove_pageLoad(editTextbox); } </script>
The right side of the ImageManager's upload window is truncated in IE7 - http://screencast.com/t/zB2lWaGXdYd
When indenting list items in ordered list, the created nested list type remains the same.
The problem could be described with the following behavior: · Cannot insert a link with the Link Manager; · If switched to HTML mode cannot return to Design mode, switching to Preview – allows Design mode. · A JavaScript error is thrown on focusing and on editing the content area. Possible fixes are: o Removing the Modernizr JavaScript file; o Setting the RadEditor with ContentAreaMode="Iframe" property;
The Insert Web Part tool in RadEditor for SP 2010 throws JavaScript error (reproducible in all browsers). Steps to reproduce: 1. Open http://sharepoint.telerik.com/aspnet-ajax/web-parts/Pages/Content-Editor-Web-Part-using-RadEditor.aspx 2. Click over the content of the Editor, so the toolbar will be shown 3. Click over the Insert Web Part Tool video - http://screencast.com/t/Df3aV6svUy
The value set to the EmptyMessage of the editor floats outside the EDitor if its length exceeds the Editor's width - http://screencast.com/t/rPLVwFVfU
The 'Link Text' text box does not always appear in the Link Manager of RadEditor in IE. Behavior is observed when text in an inline element is selected and Link Manager is opened.
When a new anchor is created and an anchor name is set via the Hyperlink Manager tool of RadEditor, the 'name' attribute will not be applied under IE7. Under IE8 the specified anchor name is set to a 'submitname' attribute of the anchor element.
FIX: RadEditor in an iframe on iPad grows infinitely The following workaround could be used temporarily: <script type="text/javascript"> Sys.Application.add_load(function () { var editor = $find("<%=RadEditor1.ClientID%>"); var viewportWidth = document.documentElement.clientWidth; var viewportHeight = document.documentElement.clientHeight; editor.setSize(viewportWidth.toString(), viewportHeight.toString()); } ) </script>
Rejected with the following description: RadEditor performs complex operation in order to manage its content when switching between Design and HTML modes like cloning elements and inserting content in iframe elements. Internet Explorer, however, has some limitations related to that particular operations that prevents the control from preserving the onload attribute (e.g., attributes are not preserved when the iframe is cloned, writing html to an editable iframe doesn't always preserve the event attributes). In order to handle that scenario you can replace the event attributes with JavaScript events. For example: <telerik:RadEditor ID="RadEditor1" runat="server" ContentFilters="ConvertToXhtml"> <Content> <html> <head> <script> window.onload = function () { alert(1); } </script> </head> <body > some text </body> </html> </Content> </telerik:RadEditor> Note: the ConvertToXhtml filter should be enabled as well.