Skip to content

Commit 3222fd0

Browse files
committed
DOC-3194: remove avatar, images and authorImage from demo.
1 parent 80034ae commit 3222fd0

File tree

4 files changed

+32
-35
lines changed

4 files changed

+32
-35
lines changed
Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
11
<textarea id="comments-callback">
2-
<h2>Welcome to Tiny Comments!</h2>
3-
<p>Please try out this demo of our Tiny Comments premium plugin.</p>
4-
<ol>
5-
<li>Highlight the content you want to comment on.</li>
6-
<li>Click the <em>Add Comment</em> icon in the toolbar.</li>
7-
<li>Type your comment into the text field at the bottom of the Comment sidebar.</li>
8-
<li>Click <strong>Save</strong>.</li>
9-
</ol>
10-
<p>Your comment is then attached to the text, exactly like this!</p>
11-
<p>If you want to take Tiny Comments for a test drive in your own environment, Tiny Comments is one of the premium plugins you can try for free for 30 days by signing up for a Tiny account. Make sure to check out our documentation as well.</p>
12-
<h2>A simple table to play with</h2>
13-
<table style="border-collapse: collapse; width: 100%;" border="1">
14-
<thead>
15-
<tr>
16-
<th>Product</th>
17-
<th>Value</th>
18-
</tr>
19-
</thead>
20-
<tbody>
21-
<tr>
22-
<td><a href="https://www.tiny.cloud/">Tiny Cloud</a></td>
23-
<td>The easiest and most reliable way to integrate powerful rich text editing into your application.</td>
24-
</tr>
25-
<tr>
26-
<td><a href="https://www.tiny.cloud/drive/">Tiny Drive</a></td>
27-
<td>Image and file management for TinyMCE in the cloud.</td>
28-
</tr>
29-
</tbody>
30-
</table>
31-
<p>Thanks for supporting TinyMCE! We hope it helps your users create great content.</p>
2+
<h2>Welcome to Tiny Comments!</h2>
3+
<p>Please try out this demo of our Tiny Comments premium plugin.</p>
4+
<ol>
5+
<li>Highlight the content you want to comment on.</li>
6+
<li>Click the <em>Add Comment</em> icon in the toolbar.</li>
7+
<li>Type your comment into the text field at the bottom of the Comment sidebar.</li>
8+
<li>Click <strong>Comment</strong>.</li>
9+
</ol>
10+
<p>Your comment is <span class="mce-annotation tox-comment" data-mce-annotation-uid="mce-conversation_420304606321716900864126" data-mce-annotation="tinycomments">then</span> attached to the text, <span class="mce-annotation tox-comment" data-mce-annotation-uid="mce-conversation_19679600221621399703915" data-mce-annotation="tinycomments">exactly like this!</span></p>
11+
<p>If you want to take Tiny Comments for a test drive in your own environment, Tiny Comments is one of the premium plugins you can try for free for 14 days by signing up for a Tiny account. Make sure to check out our documentation as well.</p>
12+
<h2>A simple table to play with</h2>
13+
<table style="border-collapse: collapse; width: 100%;" border="1">
14+
<thead>
15+
<tr>
16+
<th>Product</th>
17+
<th>Value</th>
18+
</tr>
19+
</thead>
20+
<tbody>
21+
<tr>
22+
<td><a href="https://www.tiny.cloud/">Tiny Cloud</a></td>
23+
<td>The easiest and most reliable way to integrate powerful rich text editing into your application.</td>
24+
</tr>
25+
<tr>
26+
<td><a href="https://www.tiny.cloud/drive/">Tiny Drive</a></td>
27+
<td>Image and file management for TinyMCE in the cloud.</td>
28+
</tr>
29+
</tbody>
30+
</table>
31+
<p>Thanks for supporting TinyMCE! We hope it helps your users create great content.</p>
3232
</textarea>

modules/ROOT/examples/live-demos/comments-callback/index.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,12 @@ const userDb = {
88
name: 'Michael Cook',
99
fullName: 'Michael Cook',
1010
description: 'Product Owner',
11-
image: "{{imagesdir}}/avatars/michaelcook.png"
1211
},
1312
'kalebwilson': {
1413
id: 'kalebwilson',
1514
name: 'Kaleb Wilson',
1615
fullName: 'Kaleb Wilson',
1716
description: 'Marketing Director',
18-
image: "{{imagesdir}}/avatars/kalebwilson.png"
1917
}
2018
};
2119

@@ -26,16 +24,15 @@ const now = new Date();
2624
const yesterday = new Date(now.getTime() - 24 * 60 * 60 * 1000).toISOString();
2725
const anhourago = new Date(now.getTime() - 60 * 60 * 1000).toISOString();
2826

29-
const fillAuthorInfo = (id, fullName, image) => ({
27+
const fillAuthorInfo = (id, fullName) => ({
3028
author: id,
3129
authorName: fullName,
32-
authorAvatar: image,
3330
});
3431

3532
const getAuthorInfo = (uid) => {
3633
const user = userDb[uid];
3734
if (user) {
38-
return fillAuthorInfo(user.id, user.fullName, user.image);
35+
return fillAuthorInfo(user.id, user.fullName);
3936
}
4037
return {
4138
author: uid,
-91.2 KB
Binary file not shown.
-100 KB
Binary file not shown.

0 commit comments

Comments
 (0)