Skip to content

Commit ae0d850

Browse files
kemister85Farzad HayatMitchC1999tiny-ben-tran
authored
DOC-2445: TinyMCE 7.2 release documentation. (#3320)
* DOC-2445: TinyMCE 7.2 release documentation. * DOC-2246: TinyMCE 7.2 Release notes & community changelog. (#3321) * DOC-2246: TinyMCE 7.2 Release notes & community changelog. * Update modules/ROOT/nav.adoc Co-authored-by: Farzad Hayat <[email protected]> * DOC-2446: Added release note entry for new options debug API TINY-10605 * Revert "DOC-2446: Added release note entry for new options debug API TINY-10605" This reverts commit ff24241. Sorry, this should be PR from a separate branch. * DOC-2446: Add TINY-10428 release note entry (#3329) * DOC-2446: Add TINY-10428 release note entry * Update modules/ROOT/pages/7.2-release-notes.adoc Co-authored-by: Karl Kemister-Sheppard <[email protected]> --------- Co-authored-by: Karl Kemister-Sheppard <[email protected]> * DOC-2446: Add TINY-10374 release note entry (#3327) * DOC-2446: Add TINY-10374 release note entry * Update modules/ROOT/pages/7.2-release-notes.adoc Co-authored-by: Karl Kemister-Sheppard <[email protected]> --------- Co-authored-by: Karl Kemister-Sheppard <[email protected]> * DOC-2446: Add TINY-10605 release note entry (#3322) * DOC-2446: Add TINY-10605 release note entry * Simplify explanation of data types * DOC-2446: Add TINY-10900 release note entry (#3326) * DOC-2446: Add TINY-10820 release note entry (#3335) * DOC-2446: Add TINY-10820 release note entry * Fix grammatical error in heading * Update modules/ROOT/pages/7.2-release-notes.adoc Co-authored-by: Karl Kemister-Sheppard <[email protected]> --------- Co-authored-by: Karl Kemister-Sheppard <[email protected]> * DOC-2446: Add TINY-11001 release note entry (#3336) * DOC-2446: Add TINY-11001 release note entry * Apply suggestions from code review Co-authored-by: Karl Kemister-Sheppard <[email protected]> --------- Co-authored-by: Karl Kemister-Sheppard <[email protected]> * DOC-2446: Add TINY-10807 release note entry (#3337) * DOC-2446: Add TINY-10869 release note entry (#3339) * DOC-2446: Add TINY-10869 release note entry * Apply suggestions from Mitch's code review Co-authored-by: Mitchell Crompton <[email protected]> --------- Co-authored-by: Mitchell Crompton <[email protected]> * DOC-2446: Add TINY-10962 release note entry (#3342) * DOC-2446: Improved `Search & Replace` dialog accessibility by changing placeholders to labels. (#3347) * DOC-2446: Improved Find & Replace dialog accessibility by changing placeholders to labels. * Update modules/ROOT/pages/7.2-release-notes.adoc * Update modules/ROOT/pages/7.2-release-notes.adoc * Update modules/ROOT/pages/7.2-release-notes.adoc Co-authored-by: Farzad Hayat <[email protected]> * Update modules/ROOT/pages/7.2-release-notes.adoc Co-authored-by: Farzad Hayat <[email protected]> * Update modules/ROOT/pages/7.2-release-notes.adoc Co-authored-by: Farzad Hayat <[email protected]> --------- Co-authored-by: Farzad Hayat <[email protected]> * DOC-2446: Fixed cases where adding a newline around a br, table or img would not move the cursor to a new line. (#3345) * DOC-2446: Bump `spelling.war` version to `2.119.6` for release 7.2. (#3344) * DOC-2446: Bump spelling.war version to 2.119.6 for release 7.2. * DOC-2446: update introduction-to-tiny-spellchecker/supported-languages.adoc. * DOC-2446: Update index.js demo to include new supported langs Added new entry to release notes outlining the new supported langs Updated default values for spellchecker_languages partial Updated example for spellchecker_content_langs to inculde full list of supported langs. --------- Co-authored-by: Farzad Hayat <[email protected]> * DOC-2446: Temporary elements such as incorrect spelling highlights were interfering with accessibility checking. (#3341) * DOC-2446: Temporary elements such as incorrect spelling highlights were interfering with accessibility checking. * Update modules/ROOT/pages/7.2-release-notes.adoc Co-authored-by: Farzad Hayat <[email protected]> * Update modules/ROOT/pages/7.2-release-notes.adoc Co-authored-by: Farzad Hayat <[email protected]> * Update modules/ROOT/pages/7.2-release-notes.adoc Co-authored-by: Farzad Hayat <[email protected]> --------- Co-authored-by: Farzad Hayat <[email protected]> * DOC-2446: Deleting in a div with preceding br elements would sometimes throw errors. (#3343) * DOC-2446: New `revisionhistory_fetch_revision` option to support updating a revision when it is selected. (#3349) * DOC-2446: Release note entry for new `revisionhistory_fetch_revision` option * Improve `revisionhistory_fetch` option's return data layout and change `content` field to optional * Add `revisionhistory_fetch_revision` option and include it in revisionhistory.adoc * Update Revision History live demo to include revisionhistory_fetch_revision * Update Revision History demo to include more plugins and toolbar buttons * Revert addition of extra plugins/toolbar buttons. * Apply suggestions from Ben's code review Co-authored-by: tiny-ben-tran <[email protected]> * change revisionhistory_fetch_revision return data to link back to revisionhistory_fetch * Reword revisionhistory_fetch_revision option description to not use 'should' * DOC-2446: Improve the wording for fetch_revision option * Update modules/ROOT/pages/7.2-release-notes.adoc Co-authored-by: Karl Kemister-Sheppard <[email protected]> * Apply suggestions from Karl's code review Co-authored-by: Karl Kemister-Sheppard <[email protected]> --------- Co-authored-by: tiny-ben-tran <[email protected]> Co-authored-by: Karl Kemister-Sheppard <[email protected]> * DOC-2446: Add TINY-10891 release note entry (#3334) * DOC-2446: Add TINY-10891 release note entry * Improvements from Karl's code review * DOC-2446: `autoresize_bottom_margin` was not reliably applied in some situations. (#3346) * DOC-2446: autoresize_bottom_margin was not reliably applied in some situations. * Update modules/ROOT/pages/7.2-release-notes.adoc Co-authored-by: Farzad Hayat <[email protected]> * Update modules/ROOT/pages/7.2-release-notes.adoc Co-authored-by: tiny-ben-tran <[email protected]> --------- Co-authored-by: Farzad Hayat <[email protected]> Co-authored-by: tiny-ben-tran <[email protected]> * Add for attribute to label component in dialog-components.adoc. (#3348) * Add 7.2 release entries to changelog.adoc * 7.2 Release Cleanup (release notes, changelog, and nav) * DOC-2446: Added support for querying the state of the `mceTogglePlainTextPaste` command. (#3351) --------- Co-authored-by: Farzad Hayat <[email protected]> Co-authored-by: Mitchell Crompton <[email protected]> Co-authored-by: tiny-ben-tran <[email protected]> * Fix merge conflict in changelog.adoc (#3356) * Attempt 2 at fixing merge conflict (#3358) --------- Co-authored-by: Farzad Hayat <[email protected]> Co-authored-by: Mitchell Crompton <[email protected]> Co-authored-by: tiny-ben-tran <[email protected]>
1 parent 1b32c0b commit ae0d850

17 files changed

+652
-50
lines changed

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

Lines changed: 55 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,41 @@
1+
const getRandomDelay = () => {
2+
const minDelay = 500;
3+
const maxDelay = 2000;
4+
return Math.floor(Math.random() * (maxDelay - minDelay + 1)) + minDelay;
5+
};
6+
7+
const lightRevisions = [
8+
{
9+
revisionId: '4',
10+
createdAt: '2023-11-29T10:11:21.578Z',
11+
},
12+
{
13+
revisionId: '3',
14+
createdAt: '2023-11-25T08:30:21.578Z',
15+
},
16+
{
17+
revisionId: '2',
18+
createdAt: '2023-11-24T22:26:21.578Z',
19+
},
20+
{
21+
revisionId: '1',
22+
createdAt: '2023-11-23T20:26:21.578Z',
23+
},
24+
];
25+
26+
const revisionhistory_fetch = () =>
27+
new Promise((resolve) => {
28+
setTimeout(() => {
29+
resolve(
30+
lightRevisions
31+
.sort((a, b) =>
32+
new Date(a.createdAt) < new Date(b.createdAt) ? -1 : 1
33+
)
34+
.reverse()
35+
);
36+
}, getRandomDelay());
37+
});
38+
139
const revisions = [
240
{
341
revisionId: '4',
@@ -82,21 +120,30 @@ const revisions = [
82120
<p>And those use cases are just the start. TinyMCE is incredibly flexible, and with hundreds of APIs there&rsquo;s likely a solution for your editor project. If you haven&rsquo;t experienced Tiny Cloud, get started today. You&rsquo;ll even get a free trial of our premium plugins &ndash; no credit card required!</p>
83121
-->
84122
`,
85-
}
123+
},
86124
];
87125

88-
const get_revisions = () => new Promise((resolve) => {
126+
const revisionhistory_fetch_revision = (_editor, revision) =>
127+
new Promise((resolve) => {
89128
setTimeout(() => {
90-
resolve(revisions.sort((a, b) => new Date(a.createdAt) < new Date(b.createdAt) ? -1 : 1).reverse());
91-
}, 1000);
129+
let newRevision = null;
130+
for (let i = 0; i < revisions.length; i++) {
131+
const temp = revisions[i];
132+
if (temp.revisionId === revision.revisionId) {
133+
newRevision = temp;
134+
break;
135+
}
136+
}
137+
resolve(newRevision);
138+
}, getRandomDelay());
92139
});
93140

94-
95141
tinymce.init({
96142
selector: 'textarea#revisionhistory',
97143
height: 800,
98144
plugins: 'revisionhistory',
99145
toolbar: 'revisionhistory',
100-
revisionhistory_fetch: get_revisions,
101-
content_style: 'body { font-family:Helvetica,Arial,sans-serif; font-size:16px }'
102-
});
146+
content_style: 'body { font-family:Helvetica,Arial,sans-serif; font-size:16px }',
147+
revisionhistory_fetch,
148+
revisionhistory_fetch_revision,
149+
});

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

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,29 @@ tinymce.init({
55
height: 500,
66
spellchecker_language: 'en',
77
content_langs: [
8-
{ title: 'English (US)', code: 'en_US' },
9-
{ title: 'English (US Medical)', code: 'en_US', customCode: 'en_US-medical' },
10-
{ title: 'English (UK)', code: 'en_UK' },
11-
{ title: 'English (UK Medical)', code: 'en_UK', customCode: 'en_UK-medical' },
12-
{ title: 'Spanish', code: 'es' },
8+
{ title: 'Afrikaans (South Africa)', code: 'af_ZA', customCode: 'af_ZA' },
9+
{ title: 'English (Australia)', code: 'en_AU' },
10+
{ title: 'English (Canada)', code: 'en_CA' },
11+
{ title: 'English (United Kingdom)', code: 'en_GB' },
12+
{ title: 'English (United States)', code: 'en_US' },
13+
{ title: 'Medical English (US)', code: 'en_US', customCode: 'en_US-medical' },
14+
{ title: 'Medical English (UK)', code: 'en_GB', customCode: 'en_GB-medical' },
15+
{ title: 'Danish', code: 'da' },
16+
{ title: 'Dutch', code: 'nl_NL' },
17+
{ title: 'Finnish', code: 'fi' },
1318
{ title: 'French', code: 'fr' },
14-
{ title: 'German', code: 'de' },
15-
{ title: 'Portuguese', code: 'pt' },
16-
{ title: 'Chinese', code: 'zh' }
19+
{ title: 'German', code: 'de_DE' },
20+
{ title: 'Hungarian', code: 'hu' },
21+
{ title: 'Italian', code: 'it_IT' },
22+
{ title: 'Maori (New Zealand)', code: 'mi_NZ' },
23+
{ title: 'Norwegian Bokmål', code: 'nb_NO' },
24+
{ title: 'Norwegian Nynorsk', code: 'nn' },
25+
{ title: 'Polish', code: 'pl' },
26+
{ title: 'Portuguese (Brazil)', code: 'pt_BR' },
27+
{ title: 'Portuguese (Portugal)', code: 'pt_PT' },
28+
{ title: 'Spanish', code: 'es' },
29+
{ title: 'Swedish', code: 'sv_SE' },
30+
{ title: 'Swedish (Finland)', code: 'sv_FI' }
1731
],
1832
content_style: 'body { font-family:Helvetica,Arial,sans-serif; font-size:16px }'
19-
});
33+
});

modules/ROOT/nav.adoc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,14 @@
405405
** xref:tinymce-and-cors.adoc[Cross-Origin Resource Sharing (CORS)]
406406
* Release information
407407
** xref:release-notes.adoc[Release notes for {productname} {productmajorversion}]
408+
*** {productname} 7.2
409+
**** xref:7.2-release-notes.adoc#overview[Overview]
410+
**** xref:7.2-release-notes.adoc#accompanying-premium-self-hosted-server-side-component-changes[Accompanying Premium self-hosted server-side component changes]
411+
**** xref:7.2-release-notes.adoc#accompanying-premium-plugin-changes[Accompanying Premium plugin changes]
412+
**** xref:7.2-release-notes.adoc#improvements[Improvements]
413+
**** xref:7.2-release-notes.adoc#additions[Additions]
414+
**** xref:7.2-release-notes.adoc#changes[Changes]
415+
**** xref:7.2-release-notes.adoc#bug-fixes[Bug fixes]
408416
*** {productname} 7.1.2
409417
**** xref:7.1.2-release-notes.adoc#overview[Overview]
410418
**** xref:7.1.2-release-notes.adoc#accompanying-premium-plugin-changes[Accompanying Premium Plugin changes]

0 commit comments

Comments
 (0)