{productname} {productmajorversion} is a powerful and flexible rich text editor that can be embedded in web applications. This quick start covers how to add a {productname} editor to a web page using NuGet.
To add {productname} to a .NET project, run the following on a command line:
-
Using the NuGet package manager console, run the following:
Install-Package {productname} -
Using the
dotnetCLI, run the following:dotnet add package {productname}
Ensure the tinymce directory containing the tinymce.min.js file is accessible for the target page or application by either:
-
Using a webserver route, or
-
Copying the
tinymcedirectory to a public folder using a build tool.
Include the following line of code in the <head> of an HTML page:
<script src="/path/or/uri/to/tinymce.min.js" referrerpolicy="origin" crossorigin="anonymous"></script>Adding this content to an HTML file and opening it in a web browser will load a {productname} editor, such as:
liveDemo::default[]