Note: The same theme file can be referred through the CDN version by using https://cdn.syncfusion.com/blazor/18.1.48/styles/bootstrap4.css.
To use manual scripts other than the scripts from NuGet package, register the Blazor service in ~/Startup.cs file by using true parameter as mentioned below.
using Syncfusion.Blazor;
namespace WebApplication1
{
public class Startup
{
public void ConfigureServices(IServiceCollection services)
{
....
....
services.AddSyncfusionBlazor(true);
}
}
}services.AddSyncfusionBlazor(); ... Syncfusion.Licensing.SyncfusionLicenseProvider.RegisterLicense("...");
<link rel="stylesheet" rel='nofollow' href="_content/Syncfusion.Blazor/styles/bootstrap4.css" />
<SfRichTextEditor @bind-Value="@(test)">SfRichTextEditor> @code { public string test = "ok"; }
t.prototype.getRenderer = function(t) {
var n = sf.base.getEnumValue(e.RenderType, t);
if (sf.base.isNullOrUndefined(this.rendererMap[n]))
throw "The renderer " + n + " is not found";
return this.rendererMap[n]
}
Hi there,same here!I've made a clean and simple Blazor Server App to demonstrate the error, see attached ZIP.Changes made to the VS2019 default demo:
Startup.cs:services.AddSyncfusionBlazor(); ... Syncfusion.Licensing.SyncfusionLicenseProvider.RegisterLicense("...");_Host.cshtml:<link rel="stylesheet" rel='nofollow' href="_content/Syncfusion.Blazor/styles/bootstrap4.css" />Index.razor:I've also added a screencapture to show up the 'uncaught the renderer content is not found" failure in the console, see attached mp4.<SfRichTextEditor @bind-Value="@(test)">SfRichTextEditor> @code { public string test = "ok"; }
This is the bug (console, line 4):t.prototype.getRenderer = function(t) { var n = sf.base.getEnumValue(e.RenderType, t); if (sf.base.isNullOrUndefined(this.rendererMap[n])) throw "The renderer " + n + " is not found"; return this.rendererMap[n] }
btw: I've downloaded and tried your sample (https://www.syncfusion.com/downloads/support/forum/153816/ze/BlazorApp1-744101838), too.
Same error on initial startup, so it does not depend on NuGet-caching. Sample does not work as expected!Any idea?
Regards,
Volker
Attachment: BlazorApp1_24f68ee3.zip
|
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
var supportedCultures = new[] { new System.Globalization.CultureInfo("en-US") };
app.UseRequestLocalization(new RequestLocalizationOptions
{
DefaultRequestCulture = new Microsoft.AspNetCore.Localization.RequestCulture(culture: "en-US", uiCulture: "en-US"),
SupportedCultures = supportedCultures,
SupportedUICultures = supportedCultures
});
...
...
}
|