You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The location of the script depends on the type of Blazor app, including Blazor Server and Blazor WebAssembly (WASM) which are not covered in this guide.
22
+
23
+
* If using Blazor Server, add the script in `+Pages/_Host.cshtml+`, for example:
. Add the `+Editor+` component to a page by either:
37
+
38
+
. Add the `+Editor+` component to a page by either:
27
39
* Using the `+using+` directive
28
40
+
29
41
[source,cs]
30
42
----
43
+
@rendermode InteractiveServer
31
44
@using TinyMCE.Blazor
32
45
<Editor />
33
46
----
@@ -45,12 +58,15 @@ _File:_ `+Pages/Index.razor+`
45
58
[source,cs]
46
59
----
47
60
@page "/"
61
+
@rendermode InteractiveServer
48
62
@using TinyMCE.Blazor
49
63
50
64
<h1>Hello, world!</h1>
51
65
Welcome to your new app.
52
66
<Editor />
53
67
----
68
+
[IMPORTANT]
69
+
In a Blazor Web App, different render modes determine how components are rendered and how interactivity is handled. To enable JavaScript interactivity, ensure that `+@rendermode InteractiveServer+` is specified in a page component.
This will start a local development server, accessible at http://localhost:5000.
97
+
This will start a local development server accessible at `http://localhost:{PORT}`, where `{PORT}` is specified in the project's `+Properties/launchSettings.json+` file.
94
98
* To stop the development server, select on the command line or command prompt and press _Ctrl+C_.
0 commit comments