Problem: In the RadEditor we have the NewLineMode set to Div We are also using a ToolsFile xml document to control the tools available in RadEditor. The problem is the InsertParagraph tool now inserts <div> tags instead of <p> tags. We want to keep the NewLineMode behavior as DIV while still having a tool that can insert a paragraph (i.e. a <p> tag). To replicate this problem: On the RadEditor demo page, first set "NEW LINES AS" to "Divs". Then, in the editor content area just above the "Destinations" table, Type in three lines: Comment1 Comment2 Comment3 If you then toggle to the HTML tab, you will see that the Comment1 line is (incorrectly) bracketed by a <p> tag while the Comment2 and Comment3 lines are (correctly) bracketed by <div> tags. Next, go back to the Design tab and position yourself at the beginning of the Comment3 line then click the [Insert Paragraph] button. In the newly inserted "paragraph" type "Comment2b". If you then toggle to the HTML tab you will see that Comment2b is incorrectly bracketed by a <div> tag. It should be a <p> tag.
Changing the background color for the second/subsequent paragraph causes background color for first/previous paragraph to be lost/changed. This is a browser-specific bug. Reproduction steps: Navigate Internet Explorer/Edge browser to: Telerik RadEditor Demo Page Select-all and delete. With cursor at the beginning, select a background color from the toolbar. Type some text. Hit the Enter key to start a second paragraph Select the "no-fill" background color from the toolbar. Results: -The background color for the first/previous paragraph is removed.
Current workaround is provided in the archive below. It consists of a function override that prevents the attribute loss. Below the workaround is the repro sample that invokes the validation.
When part of a table from MS Excel is copied and pasted into RadEditor under Edge, the RadEditor inserts an image instead of the html for the table. It inserts <img alt="" src="data:image/png;base64, ... " /> instead of the html. Steps to reproduce: Open http://demos.telerik.com/aspnet-ajax/editor/examples/overview/defaultcs.aspx in MS Edge.On the editor select the html and delete everything. On the editor select design Open any Excel file copy a couple of cells Paste in the Editor On the editor select html Instead if html the there is an image tag <img alt="" src="data:image/png;base64,iVBOR ... YII=" /> With firefox, IE 11 and Chrome the html is pasted. For MS Edge the Image tag is pasted. Workaround: <telerik:RadEditor runat="server" ID="RadEditor"></telerik:RadEditor> <script> Telerik.Web.UI.Editor.Utils.containsHtmlAtClipboard = function(oEvent) { var result = oEvent && oEvent.clipboardData && oEvent.clipboardData.getData && oEvent.clipboardData.types && oEvent.clipboardData.types.length && Telerik.Web.UI.Editor.Utils.containsElement(/text\//i, oEvent.clipboardData.types); return result; } </script>
When part of a table from MS Excel is copied and pasted into RadEditor under Edge, the RadEditor inserts an image instead of the html for the table. It inserts <img alt="" src="data:image/png;base64, ... " /> instead of the html. IE 11, Chrome and Firefox all paste the html in the RadEditor but MS Edge pastes as an image. Is there a way for the radeditor to override this so the html is pasted instead of an image?
You can press Delete or Backspace again to delete the remaining content
<telerik:RadEditor ID="RadEditor1" runat="server"> <Content> select and delete some of the "th" content, the entire cell element will be deleted instead of its content <table> <thead> <tr> <th>th1</th> <th>th2</th> <th>th3</th> </tr> </thead> <tr> <td>1</td> <td>2</td> <td>3</td> </tr> </table> </Content> </telerik:RadEditor> <script> //workaraound Telerik.Web.UI.Editor.DeleteSelectionCommand.prototype.deleteNodeContent = function (node) { var utils = Telerik.Web.UI.Editor.Utils; if (utils.isTag(node, "td") || utils.isTag(node, "th")) { utils.removeChildren(node); node.innerHTML = NBSP; } else { remove(node); } } function remove(node) { node.parentNode.removeChild(node); } </script>
When copying text using the keyboard, the content is not copied. Instead is is marked as deleted and the selection is moved to the end of the selection.
Finding is stuck to the last possible occurrence and cannot proceed to the next match.
Hi Telerik Team, There is one recent problem we faced when using RadEditor. The bottom line is distorted. We are using version telerik version ASP.NET AJAX Q2 2016. Attached is the screenshot of html.
Hi Telerik Team, There is one recent problem we faced when copy paste from word document to Rad Editor. The spacing between the paragraphs is more than what exists in the word document. The property we are using while copy paste from document to RadEditor radTextEditor.StripFormattingOptions = Telerik.Web.UI.EditorStripFormattingOptions.MSWordNoMargins | Telerik.Web.UI.EditorStripFormattingOptions.ConvertWordLists; The functionality working fine in IE 11. We are using version telerik version ASP.NET AJAX Q2 2016. Also there is a default font of Times New Roman in Edge browser which not in IE 11 Attached is the screenshot of html. Please look into this.
Hi Telerik Team, There is one recent problem we faced when copy paste of email address doesn't get open in outlook as HREF property is not set in Edge Browser. The functionality working fine in IE 11. We are using version telerik version ASP.NET AJAX Q2 2016. Attached is the screenshot of html.
The following code snippet can be used for modifying the inserted table by the dialog until this is implemented: <telerik:RadEditor ID="RadEditor1" runat="server"> </telerik:RadEditor> <script type="text/javascript"> var commandList = Telerik.Web.UI.Editor.CommandList; var replaceTable = commandList._replaceTable; commandList._replaceTable = function (table, editor, args) { var insertedTable = args.tableToModify; //The new table created by TableWizard dialog which will be inserted //Here the inserted table could be modified insertedTable.style.backgroundColor = "red"; var oldTable = table; // The table which will be replaced if exists replaceTable.call(this, table, editor, args); }; </script>
<telerik:RadEditor ID="RadEditor3" runat="server" EditModes="Design" OnClientLoad="OnClientLoad" RenderMode="Lightweight"> <Modules> <telerik:EditorModule Name="RadEditorStatistics" Visible="true" Enabled="true"/> </Modules> </telerik:RadEditor>
When using Table Wizard to insert a new table inside a table cell, the selected table is replaced by the one created from Table Wizard. Currently, the workaround is to use the plain InsertTable tool in order to nest tables.
The formatting of nested lists is lost when pasting from Word in IE10. The issue is reproducible also in IE8 and I9.
Having some text and input inside: Highlight it in order to copy and paste leads and the content area will scroll to the top of the content area. Also, you cannot highlight the input in order to copy and paste it.
http://localdemos.telerik.com/aspnet-ajax-fixes/editor/examples/trackchanges/defaultcs.aspx Paste some content in the Editor Expected: The pasted content is displayed and tracked Actual: Nothing is pasted Workaround: <telerik:RadEditor ID="RadEditor1" runat="server" EnableTrackChanges="true"> <Content> <p>test</p> <p>test</p> </Content> </telerik:RadEditor> <script type="text/javascript"> if (Telerik.Web.Browser.edge) { var editorPrototype = Telerik.Web.UI.RadEditor.prototype; var origKeydownHandler = editorPrototype._onKeyDown; editorPrototype._onKeyDown = function (ev) { var shortCut = this.get_shortCutManager().isShortCutHit(ev); if (!shortCut || shortCut.get_name() != "Paste") { origKeydownHandler.call(this, ev); } } } </script>