This method should change the text and the tooltip of a desired tool. Currently this functionality does not work and the set value is not applied to the UI of the button. Possible workaround is using the following custom Client-side method, that changes both the button's text and its tooltip: function changeToolsText(editor, toolName, newToolText) { var tool = editor.getToolByName(toolName); var toolElement = tool.get_element(); var textElement = $telerik.getChildByClassName(toolElement, "reButton_text", 0); //Set the tooltip of the Anchor element toolElement.title = newToolText; //Set the text of the button textElement.innerHTML = newToolText; } This method accepts three overload arguments: 1. editor - the editor's Client-side object; 2. toolName - the name of the tool as string; 3. newToolText - the desired text as string; Example: function OnClientLoad(editor, args) { changeToolsText(editor, "CustomTool", "New text value"); }
Encountering an issue within RadEditor while using Ordered Lists. Some of the list items are re-numbered incorrectly and there are general issues while performing the Outdent command. Steps to Reproduce: 1. Copy all text from the source document (attached) 2. Paste into the RadEditor's HTML mode 3. Switch back to Design mode. 4. Bring the cursor to just before the S in the text "START HERE" in the third nested ordered list. 5. Hit the Outdent button, fine so far. 6. Take note of the item "THIS ITEM MOVES LISTS" 7. Hit the Outdent button again. The item "THIS ITEM MOVES LISTS" is no longer a child node of "Back-dent!"
The "Link to original" property should insert an image link pointing to the original image and the "Open in a new window" property should add the target attribute to the link with value "_blank". None of these modifications happen if the properties are set to true. Possible workaround is to add the attached ImageManager dialog as an external dialog using the ExternalDialogsPath property of the RadEditor control. If you need step-by-step example for such approach you could follow this live example: http://demos.telerik.com/aspnet-ajax/editor/examples/externaldialogspath/defaultcs.aspx
If a font table (i.e. default font, or the \fonttbl keyword) is missing from the RTF content that is being loaded in RadEditor, the control should not throw an error. If possible or needed, a font table section can be added if it is not already present in the content.
When HTML content is set to the editor and has stylization with the inline style attribute the 'ConvertInlineStylesToAttributes' filter converts some of them to attributes, but after a post back they disappear.
When only one word is inside the content of the editor. If you select it and try to apply a desired class name from the mentioned tool, nothing happens.
When indenting list items in ordered list, the created nested list type remains the same.
The resize handles of the ImageEditor's drawing tools are displaced when the edited is zoomed (both zoomed in or out).
When a RadEditor control is set to a small height and ContentAreaMode='DIV' resizing the wrapper causes the size calculation functionality to break, because the calculated value is negative.
When the content of the editor is within a SPAN element, nested in a P, pasting data with P element inside it using the pasteHtml() method throws JavaScript errors and the SPAN element is broken by the nested P elements. Steps to reproduce: 1.Set editor's content with this content: <p><span>Some text</span></p> 2.Use the editor's pasteHtml() method to paste this HTML in the middle of the above text: <p>Second text</p> 3.The result HTML is this: <P><SPAN>Some</P> <P>Second text</P> <P> text</SPAN><SPAN>​</SPAN></P>
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;
When multiple instances of RadEditor are placed inside hidden ASP Panel (visible='false') which is ajaxified with RadAjaxManager/RadAjaxPanel, and then the visibility of the ASP Panel is switched to true, the Statistics Module of the second, third.. Editors display 'undefined'. The issue is observed under Internet Explorer. The workaround is to use: -either ASP:UpdatePanel instead of the RadAjaxManager/RadAjaxPanel -OR use the following JavaScript override: Telerik.Web.UI.Editor.Modules.RadEditorStatistics.prototype.doCount = function () { if (!this.get_visible()) return; var content = this.get_editor().get_text(); var words = 0; var chars = 0; if (content) { var punctRegX = /[!\.?;,:&_\-\–\{\}\[\]\(\)~#'"]/g; content = content.replace(punctRegX, ""); var trimRegX = /(^\s+)|(\s+$)/g; content = content.replace(trimRegX, ""); if (content) { var splitRegX = /\s+/; var array = content.split(splitRegX); words = array.length; var newLines = /(\r\n)+/g; content = content.replace(newLines, ""); chars = content.length; } } var elem = this.get_element(); elem.innerHTML = "<span style='line-height:22px'>" + "Words:" + " " + words + " " + "Characters:" + " " + chars + " </span>"; } In order to make the above function override working, it must be placed: -Either below the RadScriptManager and load all the necessary resources through ScriptReferences of the RadScriptManager (disable the embedded resources of the RadEditors' instances too) -OR create an additional instance of RadEditor in a hidden div, outside the AjaxPanel and place the function override below it.
When navigating inside a table in the RadEditor, pressing the right arrow key of the keyboard moves the cursor only till the last table cell and the cursor does not exits the table.
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
RadEditor's content is messing up when links are generated through document manager and submit it from Preview mode. The issue is reproducible in Internet Explorer 7 However, a possible workaround for the issue would be to set the following code the OnClientSubmit event of the RadEditor: <telerik:RadEditor OnClientSubmit = "OnClientSubmit" /> <script> function OnClientSubmit(editor) { editor.set_mode(1); //Force design mode } </script>
When opening a RadEditor under Chrome and switch to HTML mode in the bottom left corner, close to the Design title there is missing a small part of the border.
Telerik version 2011.1.614.35 I am facing following two issues with RadEditor on Chrome (version 28.0.1500.95) and Safari (version 5.1.7) - a. Gray area is seen in the lower part of the RadEditor for Design and Preview modes. When some text is typed, the gray background vanishes for that line of text. b. Border of the RadEditor is not complete at the bottom left corner in the HTML mode. This behavior is seen whenever there is some text in it, be it the default text or the text of the field that is bound. Please refer the attachment RadEditorIssues.png
Ability for the RadEditor's validator dialog to validate HTML 5 markup inside it's content
A possible workaround: <rad:RadEditor ID="RadEditor1" runat="server" OnClientCommandExecuted="OnClientCommandExecuted"></rad:RadEditor> function OnClientCommandExecuted(editor, args) { if ("Unlink" == args.get_commandName()) { if ($telerik.isFirefox) { var anchor = editor.getSelectedElement(); if (anchor && anchor.nodeName == "A") { Telerik.Web.UI.Editor.Utils.removeNode(anchor); } } } }