Completed
Last Updated: 14 Oct 2015 12:36 by ADMIN
ADMIN
Created by: Telerik Admin
Comments: 0
Category: Editor
Type: Bug Report
0

			
Completed
Last Updated: 03 May 2016 13:26 by ADMIN
The get_text() client side function of the editor seems to append a newline character to the retrieved text. This had the effect of breaking a string comparison I had to clear placeholder text ('enter detailed text here') when the user clicks on the content area. The problem is apparent only on Chrome and Safari, but not IE.

I fixed this problem by removing the trailing newline character using a regular expression:

var t = editor.get_text();
t = t.replace(/\n/g, "")
....then do the string comparison

The problem appeared in version 2012.2 912.
Completed
Last Updated: 18 Apr 2022 09:34 by ADMIN
Release R2 2022
Completed
Last Updated: 29 Nov 2021 08:42 by ADMIN
Declined
Last Updated: 26 Nov 2015 16:39 by ADMIN
Declined
Last Updated: 26 Nov 2015 16:08 by ADMIN
Completed
Last Updated: 20 Mar 2014 09:44 by ADMIN
Declined
Last Updated: 21 Jun 2022 15:13 by ADMIN
Completed
Last Updated: 01 Jun 2021 14:41 by ADMIN
Release Q1 2016
Completed
Last Updated: 20 Jan 2016 16:51 by ADMIN
ADMIN
Created by: Rumen
Comments: 0
Category: Editor
Type: Bug Report
4

			
Declined
Last Updated: 02 Mar 2022 13:24 by ADMIN
ADMIN
Created by: Stanimir
Comments: 1
Category: Editor
Type: Feature Request
0

			
Completed
Last Updated: 01 Jun 2021 13:02 by ADMIN
Release Q2 2014
Completed
Last Updated: 20 Jan 2016 16:48 by ADMIN
A possible workaround: take the PageProperties.ascx dialog and use it as an external dialog in your project and change the _setClass: function to

_setClass: function (element, cssClassHolder) { element.className = cssClassHolder.get_value(); } 
Completed
Last Updated: 01 Jun 2021 13:06 by ADMIN
Release R2 2017
Completed
Last Updated: 14 May 2019 11:56 by ADMIN

Use The following markup:
 
<telerik:RadEditor runat="server"  ID="RadEditor1" ToolbarMode="Floating"></telerik:RadEditor>          
<telerik:RadEditor runat="server"  ID="RadEditor2" ToolProviderID="RadEditor1" ToolbarMode="Floating"></telerik:RadEditor>           
<telerik:RadEditor runat="server"  ID="RadEditor3" ToolProviderID="RadEditor1" ToolbarMode="Floating"> </telerik:RadEditor>
 
Open RadEditor1 toolbar;
Open RadEditor2 toolbar;
 
Expected: No errors are thrown'
 
Actual: The following error is thrown: 
Line: 1135Error: Unable to get property 'getElementsByTagName' of undefined or null reference

 
Use The following markup:
 
  <telerik:RadEditor runat="server"  ID="RadEditor1" ToolbarMode="Floating">            </telerik:RadEditor>            <telerik:RadEditor runat="server"  ID="RadEditor2" ToolProviderID="RadEditor1" ToolbarMode="Floating">            </telerik:RadEditor>            <telerik:RadEditor runat="server"  ID="RadEditor3" ToolProviderID="RadEditor1" ToolbarMode="Floating">            </telerik:RadEditor>
 
 
Open RadEditor1 toolbar;
 
Open RadEditor2 toolbar;
 
Expected: No errors are thrown'
 
Actual: The following error is thrown:
 
Line: 1135Error: Unable to get property 'getElementsByTagName' of undefined or null reference
 
Use The following markup:
 
  <telerik:RadEditor runat="server"  ID="RadEditor1" ToolbarMode="Floating">            </telerik:RadEditor>            <telerik:RadEditor runat="server"  ID="RadEditor2" ToolProviderID="RadEditor1" ToolbarMode="Floating">            </telerik:RadEditor>            <telerik:RadEditor runat="server"  ID="RadEditor3" ToolProviderID="RadEditor1" ToolbarMode="Floating">            </telerik:RadEditor>
 
 
Open RadEditor1 toolbar;
 
Open RadEditor2 toolbar;
 
Expected: No errors are thrown'
 
Actual: The following error is thrown:
 
Line: 1135Error: Unable to get property 'getElementsByTagName' of undefined or null reference
Completed
Last Updated: 13 Aug 2021 11:49 by ADMIN
Release Q1 2015
When paragraphs are pasted from e.g., MS Word, multiple BR tags are pasted instead of the corresponding amount needed.

The flowing custom handler shows how this can be handled as per to the specific requirements:

<telerik:RadEditor runat="server" ID="RadEditor1"
    OnClientPasteHtml="OnClientPasteHtml"
    StripFormattingOptions="AllExceptNewLines">
</telerik:RadEditor>

<script type="text/javascript">
    function OnClientPasteHtml(editor, args) {
        var commandName = args.get_commandName();
        var contentToPaste = args.get_value();

        if (commandName === "Paste") {
            contentToPaste = contentToPaste.replace(/(<br\/>)+/gi, "<br/>");

            args.set_value(contentToPaste);
        }
    }
</script>
Completed
Last Updated: 13 Aug 2021 10:53 by ADMIN
ADMIN
Created by: Rumen
Comments: 0
Category: Editor
Type: Bug Report
0