When typing text, user tries to change the font-size or font-name a span element is added into the content with the chosen formatting options, but new text is not added into the span but outside. Due to that the applied formatting does not affect the new text typed in the RadEditor.
The first div element in the content is stripped out, every time a submit occurs with opened HTML tab.
Feature request for implementing an improvement related to the current impossibility to select form elements like buttons in RadEditor content area. This is a browser behavior and it is currently preventing form editing element's properties in the module manager.
In this scenario the EncodeScripts and RemoveScripts filters are disabled, so that script tags can be inserted. Using a script tag with some HTML content after it and submit when still on HTML mode, the content after the script tag will be removed. For the time being you can workaround this problem by forcing the editor to switch to Design mode on submitting: <telerik:RadEditor ID="RadEditor2" runat="server" OnClientSubmit="OnClientSubmit"> </telerik:RadEditor> <script> function OnClientSubmit(sender, args) { sender.set_mode(Telerik.Web.UI.EditModes.Design); } </script>
Using the Hyperlink manager in a RibbonBar toolbar, causes the selection to be lost. By that, adding a hyperlink to an image, the link is inserted to the content, but it does not wrap the image element. The behavior is different across IE versions. Under IE11, the link seems to disappear.
This may result in invalid content being sent to the server or incorrect behavior of the client-side.
The described issue is because of the "Zero width nbsp" character, which is not stripped when the text is submitted. Possible resolution is to strip the character with custom function attached to the OnClientSubmit event of the RadEditor control: <telerik:RadEditor runat="server" ID="RadEditor1" OnClientSubmit="OnClientSubmit" /> <script type="text/javascript"> function OnClientSubmit(editor, args) { var html = editor.get_html(true); html = html.replace(/\u200b/g, ""); editor.set_html(html); } </script>
There some issues when both features are enabled: - Add comment to tracked change is impossible; - Context menu is broken.
For the time being you can use either approach: 1) Disable ConvertToXhtml filter: C#: protected void Page_Load(object sender, EventArgs e) { RadEditor1.DisableFilter(EditorFilters.ConvertToXhtml); } ASPX: <telerik:RadEditor ID="RadEditor1" runat="server"> <Content> <p> <h2></h2> <h2></h2> </p> </Content> </telerik:RadEditor> <script type="text/javascript"> Telerik.Web.UI.Editor.NestedElementsFix.prototype._shouldRemoveBlockElement = function (element, elementChanged) { var utils = Telerik.Web.UI.Editor.Utils; if (!elementChanged || !element) return false; if (!/^li|td|th$/.test(element.nodeName) && utils.isNodeEmptyRecursive(element) && !$telerik.$(element).find("ol,ul,table,h1,h2,h3,h4,h5,h6").length) { return true; } return false; } </script>
The right side of the ImageManager's upload window is truncated in IE7 - http://screencast.com/t/zB2lWaGXdYd
Linking an image inserted through the ImageManager via the LinkManager does not place the creating link on the right place - the <a> tag is inserted eithr inside the <img> one or beside it. The issue could be reproduced in IE11. You can see the issue reproduced in the attached video. Steps to reproduce: 1. Open http://demos.telerik.com/aspnet-ajax/editor/examples/overview/defaultcs.aspx in IE11 2. Type some text in the Editor 3. Open the IamgeManager and insert an image 4. Select the inserted image and open the Link Manager Expected result: the image tag is wrapped inside an <a> tag Actual result: The <a> tag is inserted inside the <img> one
Cut, Copy and Paste commands shortcuts are not respected in RadEditor. This is preventing the users to apply custom shortcuts to these commands as it is described in the documentation: http://www.telerik.com/help/aspnet-ajax/editor-keyboard-support.html
When a TD element (or any other block element) is applied with inline stylization (e.g. style="font-weight: bold;") and has a BR in the end gets duplicated after removing the stylization via the inline command (e.g., Bold).
Step to reproduce: 1. Open Editor Demo in Chrome and change the font size in the developer console (the F12 button) for the text; 2. enter some text separated by paragraphs (e.g. “Test Test”) 3. Put the cursor before the second “Test” text and press the Backspace button on the keyboard. Actual result: The size of the text has been changed. Expected result: The size must be the same as it was before the Backspace button was clicked. Notes: The issue reproducible only in Chrome.
Hi, We have just upgraded our controls to fix a security concern with the file upload control. However having done this the radeditor nolonger works with firefox. You cannot enter any text into the editor. Just wanted to know if this was a known issue and if there is a fix/work around.
classes are being applied to <p> when you do a return in the design view, sometimes. This one's a bit harder to explain so I apologize if this get's confusing. If you go into the HTML view and wrap some text in a <div> with a class on it then switch over to the design view and add a return and some more text the editor will add the div class to the paragraph tag, it might also strip out the paragrah line and place it after the closing div. If the content within the <div> is already formatted in <p> tags then the editor behaves properly when you do a return in the design view. See Screencast: http://screencast.com/t/pmcayQrO
In Firefox and Internet Explorer, the "Remove Alignment" button does not correctly format text with text-align set using an inline style. For example, if this is the HTML in the editor: <p style="text-align: center;">Here is text that is center aligned</p> In the Design editor, the "Remove Alignment" button looks selected, and pushing it has no effect (see screenshot). In the Javascript, the remove alignment functions for Firefox and IE only remove styles from the DOM element, inline styles are not being removed.
When the NewLineMode of a RadEditor is set to Div and a line of text is entered in an empty content area of the control under Chrome, the text will be wrapped in a paragraph element. Possible workaround is to set an initial content with a DIV and BR elements inside: <telerik:RadEditor runat="server" ID="RadEditor1" NewLineMode="Div"> <Content> <div></div> </Content> </telerik:RadEditor> Another possible solution is incorporating the following JS code right after the RadEditor declaration: <telerik:RadEditor runat="server" ID="RadEditor1" NewLineMode="Div"> </telerik:RadEditor> <script type="text/javascript"> Telerik.Web.UI.RadEditor.prototype._onKeyPressed = function (e) { } </script>
When importing external video in RadEditor, the video in the embedding code does not have the option to use https. The dialog could detect the protocol from the video to be imported and use it in the generated code at the end.