Skip to content

Commit 6c1173d

Browse files
committed
DOC-3307: Remove sortedRevisions from v8 Revision History demo.
1 parent 2512773 commit 6c1173d

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

modules/ROOT/examples/live-demos/revisionhistory/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ <h2>A simple table to play with</h2>
3333
<h2>Got questions or need help?</h2>
3434

3535
<ul>
36-
<li>Our <a class="mceNonEditable" href="https://www.tiny.cloud/docs/tinymce/8/">documentation</a> is a great resource for learning how to configure TinyMCE.</li>
36+
<li>Our <a class="mceNonEditable" href="https://www.tiny.cloud/docs/tinymce/latest/">documentation</a> is a great resource for learning how to configure TinyMCE.</li>
3737
<li>Have a specific question? Try the <a href="https://stackoverflow.com/questions/tagged/tinymce" target="_blank" rel="noopener"><code>tinymce</code> tag at Stack Overflow</a>.</li>
3838
<li>We also offer enterprise grade support as part of <a href="https://www.tiny.cloud/pricing">TinyMCE premium subscriptions</a>.</li>
3939
</ul>

modules/ROOT/examples/live-demos/revisionhistory/index.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const revisions = [
88
createdAt: '2023-11-24T22:26:21.578Z',
99
author: {
1010
id: 'james-wilson',
11-
name: 'A Tiny Husky',
11+
name: 'James Wilson',
1212
avatar: 'https://sneak-preview.tiny.cloud/demouserdirectory/images/employee_james-wilson_128_52f19412.jpg',
1313
},
1414
content: `
@@ -139,9 +139,7 @@ const revisions = [
139139

140140
const revisionhistory_fetch = () => new Promise((resolve) => {
141141
setTimeout(() => {
142-
const sortedRevisions = revisions
143-
.sort((a, b) => new Date(a.createdAt) < new Date(b.createdAt) ? 1 : -1);
144-
resolve(sortedRevisions);
142+
resolve(revisions);
145143
}, fakeDelay);
146144
});
147145

0 commit comments

Comments
 (0)