We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c2423f commit 477dac3Copy full SHA for 477dac3
modules/ROOT/examples/live-demos/full-featured/index.js
@@ -724,5 +724,13 @@ tinymce.init({
724
revisionhistory_display_author: true,
725
suggestededits_content: 'html',
726
suggestededits_access: 'full',
727
- user_id,
+ tinycomments_fetch_author_info: async (done) => await fetch(`${API_URL}/${id}`)
728
+ .then((response) => response.json())
729
+ .then((userInfo) => {
730
+ done({
731
+ author: userInfo.id,
732
+ authorName: userInfo.name,
733
+ authorAvatar: userInfo.avatar
734
+ });
735
+ })
736
});
0 commit comments