Skip to content

Commit 477dac3

Browse files
committed
DOC-3251: Include tinycomments_fetch_author_info back to full feature demo.
1 parent 1c2423f commit 477dac3

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

modules/ROOT/examples/live-demos/full-featured/index.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -724,5 +724,13 @@ tinymce.init({
724724
revisionhistory_display_author: true,
725725
suggestededits_content: 'html',
726726
suggestededits_access: 'full',
727-
user_id,
727+
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+
})
728736
});

0 commit comments

Comments
 (0)