The Official {productname} Blazor component integrates {productname} into Blazor applications. This procedure creates a basic Blazor application and adds a {productname} editor using the {productname} Blazor integration. The basic Blazor application is based on the following tutorial: Microsoft .NET Blazor Tutorial - Build your first Blazor app.
Select from the following guides:
This procedure requires:
Alternatively, the .NET WinGet Configuration file can be downloaded to install the necessary dependencies.
-
In VS Code, open the Command Palette by pressing
Ctrl+Shift+P. Find.NET: New Projectand select it to create a new project. -
Select Blazor Web App from the list of templates and follow the steps to set up the project.
-
Using the Command Palette, find and select
.NuGet: Add NuGet Package. EnterTinyMCE.Blazorand select the package along with the version to install.
-
On the Visual Studio toolbar, click the New Project button.
-
Select the Blazor Web App template and follow the steps to set up the project.
-
Use the NuGet package manager console to install the
TinyMCE.Blazorpackage, such as:Install-Package TinyMCE.Blazor
-
To test the application, run the application by pressing
Ctrl+F5.
-
Create a new Blazor project:
dotnet new blazor -o BlazorApp --no-https
-
Change into the new application directory:
cd BlazorApp -
Install the {productname} Blazor integration:
dotnet add package TinyMCE.Blazor
-
Test the application using the .NET development server.
-
To start the development server, in the project’s root directory, run:
dotnet watch run
This will start a local development server accessible at
http://localhost:{PORT}, where{PORT}is specified in the project’sProperties/launchSettings.jsonfile. -
To stop the development server, select on the command line or command prompt and press Ctrl+C.
-
For information on customizing the integration, see: