Skip to content

Commit c93b4a3

Browse files
author
Sorita Heng
committed
fix UID options
1 parent 7791c9a commit c93b4a3

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

modules/ROOT/partials/configuration/userlookup_fetch.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
[[userlookup_fetch]]
2-
== `userlookup_fetch`
1+
[[fetch_users]]
2+
== `fetch_users`
33

44
Required option to fetch a list of user IDs to display in the Suggested Edits view. This option uses the xref:#userlookupapi[`UserLookup API`].
55

@@ -12,8 +12,8 @@ tinymce.init({
1212
selector: 'textarea', // Change this value according to your HTML
1313
plugins: 'suggestededits',
1414
toolbar: 'suggestededits',
15-
userlookup_userid: 'unique-identifier', // replace this with a unique string to identify the user
16-
userlookup_fetch: (ids) => fetch(`/api/users?ids=${ids.join(',')}`)
15+
user_id: 'unique-identifier', // replace this with a unique string to identify the user
16+
fetch_users: (ids) => fetch(`/api/users?ids=${ids.join(',')}`)
1717
.then((r) => r.json())
1818
});
1919
----

modules/ROOT/partials/configuration/userlookup_userid.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
[[userlookup_userid]]
2-
== `userlookup_userid`
1+
[[user_id]]
2+
== `user_id`
33

44
Required option to set the current user's unique ID in the editor, allowing the plugin to track changes made by this user and display them correctly in the Suggested Edits view. This option uses the xref:#userlookupapi[`UserLookup API`].
55

@@ -12,6 +12,6 @@ tinymce.init({
1212
selector: 'textarea', // Change this value according to your HTML
1313
plugins: 'suggestededits',
1414
toolbar: 'suggestededits',
15-
userlookup_userid: 'unique-identifier' // replace this with a unique string to identify the user
15+
user_id: 'unique-identifier' // replace this with a unique string to identify the user
1616
});
1717
----

0 commit comments

Comments
 (0)