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
Copy file name to clipboardExpand all lines: knowledge-base/editor-mentions.md
+26-25Lines changed: 26 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,7 +41,7 @@ For dynamic positioning of the mentions list, set the [`EditMode`](slug:Telerik.
41
41
````SH.skip-repl
42
42
npm init -y
43
43
````
44
-
> This command creates a `package.json` file containing the project's configuration. The `-y` flag accepts all defaults for simplicity. In a real world application, consider running `npm init` without the flag to configure settings interactively.
44
+
> This command creates a `package.json` file with the project's configuration. The `-y` flag accepts all defaults for simplicity. In a real world application, consider running `npm init` without the flag to configure settings interactively.
45
45
2. Install a JavaScript bundler. In this example we will use [webpack](https://webpack.js.org), so run:
46
46
````SH.skip-repl
47
47
npm install webpack webpack-cli --save-dev
@@ -61,7 +61,7 @@ For dynamic positioning of the mentions list, set the [`EditMode`](slug:Telerik.
61
61
````SH.skip-repl
62
62
npm install prosemirror-mentions
63
63
````
64
-
7. Create a file named `index.js` in your project's `wwwroot/js` directory and paste the contents from the **JavaScript Code** section below.
64
+
7. Create a file named `index.js` in your project's `wwwroot/js` directory and paste the contents from the respective code tab below.
65
65
8. Build the JavaScript bundle by running:
66
66
````SH.skip-repl
67
67
npm run build
@@ -175,37 +175,38 @@ The following code demonstrates how to integrate the `proseMirror-mentions` plug
175
175
````razor MentionSuggestionList.razor
176
176
@*
177
177
IMPORTANT: outer div's "suggestion-item-list" class is mandatory. The plugin uses this class for querying.
178
-
IMPORTANT: inner div's "suggestion-item" class is mandatory too for the same reasons
178
+
IMPORTANT: inner div's "suggestion-item" class is mandatory too for the same reasons.
0 commit comments