Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/extensions/RichText.js')
-rw-r--r--src/extensions/RichText.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/extensions/RichText.js b/src/extensions/RichText.js
index 4a7a902eb..9d65be624 100644
--- a/src/extensions/RichText.js
+++ b/src/extensions/RichText.js
@@ -43,6 +43,7 @@ import BulletList from './../nodes/BulletList.js'
import TaskList from './../nodes/TaskList.js'
import TaskItem from './../nodes/TaskItem.js'
import Callout from './../nodes/Callouts.js'
+import Mention from './../extensions/Mention.js'
/* eslint-enable import/no-named-as-default */
import { Strong, Italic, Strike, Link, Underline } from './../marks/index.js'
@@ -91,6 +92,11 @@ export default Extension.create({
Dropcursor,
KeepSyntax,
FrontMatter,
+ Mention.configure({
+ HTMLAttributes: {
+ class: 'mention',
+ },
+ }),
]
if (this.options.link !== false) {
defaultExtensions.push(Link.configure({