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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Asp.Net Core - Rich Text Editor - render error

Thread ID:

Created:

Updated:

Platform:

Replies:

144946 May 29,2019 05:31 PM UTC Jun 6,2019 07:09 AM UTC ASP.NET Core - EJ 2 3
loading
Tags: Rich Text Editor
Felix
Asked On May 29, 2019 05:31 PM UTC

Hi,
when trying to add two RTE elements I'll often get following error:
What does it mean? both have different id's, so it should be fine, right?
<main class="page lanidng-page">
<section class="portfolio-block block-intro">
<div class="card" style="margin:30px">
<div class="card-body" style="background-color: #e7e7e7;">
<h4 class="card-title">
What is...
h4>
<ejs-richtexteditor id="questEditor" value="@Model.DailyLearnContent?.Question" name="quest">
<e-richtexteditor-insertimagesettings path="../uploadedImages/">e-richtexteditor-insertimagesettings>
<e-richtexteditor-toolbarsettings items="@ViewData["EmptyToolbar"]">e-richtexteditor-toolbarsettings>
<e-content-template>e-content-template>
ejs-richtexteditor>
div>
div>
<div>
<button class="btn btn-outline-primary btn-lg" type="button" data-toggle="collapse" data-target="#showAnswer" aria-expanded="false" aria-controls="showAnswer">
show answer
button>
div>
section>
<div id="showAnswer" class="collapse">
the answer is:
<ejs-richtexteditor id="ansEditor" value="@Model.DailyLearnContent?.Answer" name="ans">
<e-richtexteditor-insertimagesettings path="../uploadedImages/">e-richtexteditor-insertimagesettings>
<e-richtexteditor-toolbarsettings items="@ViewData["EmptyToolbar"]">e-richtexteditor-toolbarsettings>
<e-content-template>e-content-template>
ejs-richtexteditor>
div>
main>


Prince Oliver [Syncfusion]
Replied On May 31, 2019 05:53 AM UTC

Hello Felix, 

Good day to you. 

From the shared code snippet, it seems you have missed closing the tags properly for the RichTextEditor. So kindly make sure all tags are properly closed. We have prepared a sample for the reported scenario, unfortunately we have not been able to replicate your problem. 

The test sample can be found from the following location: http://www.syncfusion.com/downloads/support/forum/144946/ze/forum85214912  

Let us know if you are still facing any problems. 

Regards, 
Prince 


Felix
Replied On June 5, 2019 05:19 PM UTC

Hi Prince,

thx for your response. The closing tags got lost during copy/paste obviously. I'll have them in my project.
It turned out it was an issue with the toolbar settings. 
After I removed 
                    <e-richtexteditor-toolbarsettings items="@ViewData["EmptyToolbar"]">e-richtexteditor-toolbarsettings>

it worked. Not sure why because this ViewData exists. Than I initiated it like

[ViewData]
public object[] EmptyToolbar { get; } = {};
and it worked without this error.


Prince Oliver [Syncfusion]
Replied On June 6, 2019 07:09 AM UTC

Hello Felix, 

Most welcome. We are glad that the issue is resolved in your end. Let us know if you need any further assistance on this. 

Regards, 
Prince 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon