We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Keep getting run time error -- constant.js:31 Uncaught The renderer Content is not found

This code does not work - If I replace all my includes with
   <script src="https://cdn.syncfusion.com/ej2/dist/ej2.min.js" type="text/javascript"></script>
it works fine. I don't want to include 5Meg file for Rich text editor.

Any help much appreciated

Thank you.

 <!DOCTYPE html>
<html>
<head>
  <link rel='nofollow' href="https://cdn.syncfusion.com/ej2/material.css" rel="stylesheet" type="text/css" />
    <link rel='nofollow' href="https://cdn.syncfusion.com/ej2/ej2-base/styles/material.css" rel="stylesheet" type="text/css" />
    <link rel='nofollow' href="https://cdn.syncfusion.com/ej2/ej2-buttons/styles/material.css" rel="stylesheet" type="text/css" />
    <link rel='nofollow' href="https://cdn.syncfusion.com/ej2/ej2-inputs/styles/material.css" rel="stylesheet" type="text/css" />
    <link rel='nofollow' href="https://cdn.syncfusion.com/ej2/ej2-lists/styles/material.css" rel="stylesheet" type="text/css" />
    <link rel='nofollow' href="https://cdn.syncfusion.com/ej2/ej2-navigations/styles/material.css" rel="stylesheet" type="text/css" />
    <link rel='nofollow' href="https://cdn.syncfusion.com/ej2/ej2-popups/styles/material.css" rel="stylesheet" type="text/css" />
    <link rel='nofollow' href="https://cdn.syncfusion.com/ej2/ej2-splitbuttons/styles/material.css" rel="stylesheet" type="text/css" />
    <link rel='nofollow' href="https://cdn.syncfusion.com/ej2/ej2-richtexteditor/styles/material.css" rel="stylesheet" type="text/css" />

</head>
<body>
                <div id="defaultRTE" style="width:100%;border:1px solid black;height:500px;">
                    <p>The rich text editor is WYSIWYG ("what you see is what you get") editor useful to create and edit content, and return the valid <a rel='nofollow' href='https://ej2.syncfusion.com/home/' target='_blank'>HTML markup</a> or <a rel='nofollow' href='https://ej2.syncfusion.com/home/' target='_blank'>markdown</a> of the content</p>


                </div>

      <script type="text/javascript" src="https://cdn.syncfusion.com/ej2/ej2-base/dist/global/ej2-base.min.js"></script>
        <script type="text/javascript" src="https://cdn.syncfusion.com/ej2/ej2-buttons/dist/global/ej2-buttons.min.js"></script>
        <script type="text/javascript" src="https://cdn.syncfusion.com/ej2/ej2-navigations/dist/global/ej2-navigations.min.js"></script>
        <script type="text/javascript" src="https://cdn.syncfusion.com/ej2/ej2-popups/dist/global/ej2-popups.min.js"></script>
        <script type="text/javascript" src="https://cdn.syncfusion.com/ej2/ej2-splitbuttons/dist/global/ej2-splitbuttons.min.js"></script>
        <script type="text/javascript" src="https://cdn.syncfusion.com/ej2/ej2-richtexteditor/dist/global/ej2-richtexteditor.min.js"></script>
       

    <script typeof="text/javascript">

        document.addEventListener("DOMContentLoaded", function () {

                var defaultRTE;

                var defaultRTE = new ej.richtexteditor.RichTextEditor({
                    toolbarSettings: {
                        items: ['Bold', 'Italic', 'Underline', 'StrikeThrough',
                            'FontName', 'FontSize', 'FontColor', 'BackgroundColor',
                            'LowerCase', 'UpperCase', '|',
                            'Formats', 'Alignments', 'OrderedList', 'UnorderedList',
                            'Outdent', 'Indent', '|',
                            'CreateTable', 'CreateLink', 'Image', '|', 'ClearFormat', 'Print',
                            'SourceCode', 'FullScreen', '|', 'Undo', 'Redo']
                    },
                    maxLength: 2000
                });
                defaultRTE.appendTo("#defaultRTE");
});
</body>
</html>


3 Replies

PO Prince Oliver Syncfusion Team November 19, 2018 07:01 AM UTC

Hi Sampurnima, 
 
Thank you for contacting Syncfusion Support. 
 
We suggest you use our Custom Resource Generator to generate custom script and CSS for RichTextEditor or any required components and refer this custom resource in your application for rendering RTE. For more information regarding the CRG, kindly refer to the following documentation link:https://ej2.syncfusion.com/javascript/documentation/common/custom-resource-generator  
 
Please let us know if you require any further assistance on this. 
 
Regards, 
Prince 



SK sk November 19, 2018 04:13 PM UTC

OK downloaded from generator

New bug shows

ej2.js:1796 Uncaught RangeError: Maximum call stack size exceeded
    at Observer.notExist (ej2.js:1796)
    at Observer.notify (ej2.js:1784)
    at RichTextEditor.Component.notify (ej2.js:3363)
    at RichTextEditor.mouseUp (ej2.js:28449)
    at Observer.notify (ej2.js:1786)
    at RichTextEditor.Component.notify (ej2.js:3363)
    at RichTextEditor.mouseUp (ej2.js:28449)
    at Observer.notify (ej2.js:1786)
    at RichTextEditor.Component.notify (ej2.js:3363)
    at RichTextEditor.mouseUp (ej2.js:28449)


PO Prince Oliver Syncfusion Team November 21, 2018 12:25 PM UTC

Hi Sampurnima, 

Thank you for your update. 

We have resolved this issue in our end and have refreshed the Custom Resource Generator (CRG). Latest resources for RTE can be downloaded from the below link. 

Please let us know, if you need any further assistance on this 

Regards, 
Prince 


Loader.
Live Chat Icon For mobile
Up arrow icon