Skip to content

Commit 22f23a4

Browse files
kemister85MitchC1999ShiridiGandhamshanmen-tinytiny-ben-tran
authored
DOC-2511: TinyMCE 7.4 Release Documentation. (#3433)
* DOC-2511: TinyMCE 7.4 Release Documentation. * DOC-2524: Comments Premium Plugin Documentation Improvements (#3453) * DOC-2524: EPIC branch initial commit. * DOC-2524: Update: Commands, Events and APIs (Comments) (#3462) * DOC-2524: Update: Embedded Mode (Comments). (#3459) * DOC-2524: Update: Introduction (Comments) (#3456) * DOC-2524: Update: Toolbar Buttons and Menu Items (Comments) (#3460) * DOC-2524: New `tinycomments` option: Comments can be made and read, but the editor is in a readonly state. (#3461) * DOC-2524: New comments option: Comments can be made and read, but the editor is in a readonly state. * DOC-2524: revert live_demo testing url. * Update modules/ROOT/examples/live-demos/comments-readonly-mode/index.js Co-authored-by: Mitchell Crompton <[email protected]> * Update modules/ROOT/examples/live-demos/comments-readonly-mode/index.js Co-authored-by: Mitchell Crompton <[email protected]> * Update modules/ROOT/partials/configuration/comments-tinycomments_access.adoc Co-authored-by: Mitchell Crompton <[email protected]> * Update modules/ROOT/partials/configuration/comments-tinycomments_access.adoc Co-authored-by: shirqa <[email protected]> * Update modules/ROOT/pages/comments-options.adoc Co-authored-by: shirqa <[email protected]> * Update modules/ROOT/examples/live-demos/comments-readonly-mode/index.js Co-authored-by: Mitchell Crompton <[email protected]> * Update modules/ROOT/partials/configuration/comments-tinycomments_access.adoc Co-authored-by: shirqa <[email protected]> * DOC-2524: file name change, remove button from demo and update headers. * Update modules/ROOT/partials/configuration/comments-tinycomments_access.adoc Co-authored-by: Shan <[email protected]> * DOC-2524: Restructured tinycomments_access.adoc, removed basic config. * Update modules/ROOT/partials/configuration/comments-tinycomments_access.adoc Co-authored-by: Mitchell Crompton <[email protected]> * Update modules/ROOT/partials/configuration/comments-tinycomments_access.adoc Co-authored-by: Mitchell Crompton <[email protected]> * Update modules/ROOT/partials/configuration/comments-tinycomments_access.adoc Co-authored-by: Mitchell Crompton <[email protected]> * Update modules/ROOT/partials/configuration/comments-tinycomments_access.adoc Co-authored-by: Mitchell Crompton <[email protected]> * Update modules/ROOT/partials/configuration/comments-tinycomments_access.adoc Co-authored-by: shirqa <[email protected]> * Update modules/ROOT/partials/configuration/comments-tinycomments_access.adoc Co-authored-by: shirqa <[email protected]> * Update modules/ROOT/partials/configuration/comments-tinycomments_access.adoc Co-authored-by: Mitchell Crompton <[email protected]> * Update modules/ROOT/partials/configuration/comments-tinycomments_access.adoc Co-authored-by: Mitchell Crompton <[email protected]> * Update modules/ROOT/partials/configuration/comments-tinycomments_access.adoc Co-authored-by: Mitchell Crompton <[email protected]> * Update modules/ROOT/examples/live-demos/comments-ui-mode/index.html Co-authored-by: tiny-ben-tran <[email protected]> --------- Co-authored-by: Mitchell Crompton <[email protected]> Co-authored-by: shirqa <[email protected]> Co-authored-by: Shan <[email protected]> Co-authored-by: tiny-ben-tran <[email protected]> * DOC-2524: Update: Callback Mode (Comments) (#3458) * DOC-2524: Callback Mode (Comments) * Revert live_demo_url from testing. * Update modules/ROOT/examples/live-demos/comments-callback/example.js Co-authored-by: Hamza Benkhaldoun <[email protected]> * Update modules/ROOT/examples/live-demos/comments-callback/index.js Co-authored-by: Hamza Benkhaldoun <[email protected]> * Update modules/ROOT/partials/configuration/tinycomments_delete_comment.adoc Co-authored-by: Hamza Benkhaldoun <[email protected]> * Update modules/ROOT/partials/configuration/tinycomments_fetch.adoc Co-authored-by: Hamza Benkhaldoun <[email protected]> * Update modules/ROOT/pages/comments-callback-mode.adoc * Update modules/ROOT/pages/comments-callback-mode.adoc * DOC-2524: move tinycomments_fetch to optional options, updated examples to reflect optional callback. * DOC-2524: fix optional options header level. * Update modules/ROOT/partials/configuration/tinycomments_lookup.adoc Co-authored-by: tiny-ben-tran <[email protected]> * Update modules/ROOT/examples/live-demos/comments-callback/example.js * Update modules/ROOT/examples/live-demos/comments-callback/index.js * Update modules/ROOT/partials/configuration/tinycomments_resolve.adoc Co-authored-by: tiny-ben-tran <[email protected]> * DOC-2524: Update comments callback demo * Update modules/ROOT/partials/configuration/tinycomments_reply.adoc Co-authored-by: Karl Kemister-Sheppard <[email protected]> * Update modules/ROOT/pages/comments-callback-mode.adoc Co-authored-by: tiny-ben-tran <[email protected]> * Update modules/ROOT/pages/comments-callback-mode.adoc Co-authored-by: tiny-ben-tran <[email protected]> * DOC-2524: update example.js and tinycomments_fetch example to match demo updates. * Update modules/ROOT/pages/comments-callback-mode.adoc Co-authored-by: Farzad Hayat <[email protected]> * Update modules/ROOT/pages/comments-callback-mode.adoc Co-authored-by: Farzad Hayat <[email protected]> * DOC-2524: Add initial comments to callback demo * DOC-2524: Fix initialDB structure * Update modules/ROOT/examples/live-demos/comments-callback/index.js Co-authored-by: Farzad Hayat <[email protected]> * Update modules/ROOT/examples/live-demos/comments-callback/example.js Co-authored-by: Farzad Hayat <[email protected]> --------- Co-authored-by: Hamza Benkhaldoun <[email protected]> Co-authored-by: tiny-ben-tran <[email protected]> Co-authored-by: Farzad Hayat <[email protected]> * DOC-2524: Update: Using Comments (Comments) (#3457) * DOC-2524: Update: Using Comments (Comments) * DOC-2524: update png files. * Update modules/ROOT/pages/comments-using-comments.adoc Co-authored-by: Farzad Hayat <[email protected]> * Update modules/ROOT/pages/comments-using-comments.adoc Co-authored-by: Farzad Hayat <[email protected]> * DOC-2524: Relocate .png in delete-a-comment. * DOC-2524: remove comment-edit-comment-ellipsis.png duplicate. * DOC-2524: add guide to replying to comment and supporting screenshots. * Update modules/ROOT/pages/comments-using-comments.adoc Co-authored-by: Farzad Hayat <[email protected]> * DOC-2524: Replace png files with hi-res. --------- Co-authored-by: Farzad Hayat <[email protected]> --------- Co-authored-by: Mitchell Crompton <[email protected]> Co-authored-by: shirqa <[email protected]> Co-authored-by: Shan <[email protected]> Co-authored-by: tiny-ben-tran <[email protected]> Co-authored-by: Hamza Benkhaldoun <[email protected]> Co-authored-by: Farzad Hayat <[email protected]> * DOC-2513: TinyMCE 7.4 Release notes & community release. (#3434) * DOC-2513: TinyMCE 7.4 Release notes & community changelog. * DOC-2513: Sidebar could not be toggled until the skin was loaded. * Revert "DOC-2513: Sidebar could not be toggled until the skin was loaded." This reverts commit 847c9a9. * DOC-2513: New option to opt-in to keep math annotations with specific encodings. (#3447) * DOC-2513: New option to opt-in to keep math annotations with specific encodings. * Update modules/ROOT/pages/7.4-release-notes.adoc Co-authored-by: Farzad Hayat <[email protected]> * Update modules/ROOT/pages/7.4-release-notes.adoc --------- Co-authored-by: Farzad Hayat <[email protected]> * DOC-2513: Dialog list dropdown menus now close when the browser window resizes. (#3443) * DOC-2513: Formatter would not remove empty lines. (#3442) * DOC-2513: Formatter would not remove empty lines. * DOC-2513: copy edits. * Update modules/ROOT/pages/7.4-release-notes.adoc Co-authored-by: Farzad Hayat <[email protected]> --------- Co-authored-by: Farzad Hayat <[email protected]> * DOC-2513: Formatting indent size would be different than CodeMirror indent size. (#3441) * DOC-2513: Formatting indent size would be different than CodeMirror indent size. * DOC-2513: correct paragraph styling. * Update modules/ROOT/pages/7.4-release-notes.adoc * DOC-2513: Caret would unexpectedly shift to the `non-editable` table row above when pressing Enter. (#3437) * DOC-2513: Caret would unexpectedly go to a not editable table row above when user pressed enter. * DOC-2513: fix type in title. * DOC-2513: Mouse hover on partially visible dialog collection elements no longer scrolls. (#3435) * DOC-2513: Mouse hover on partially visible dialog collection elements no longer scrolls * Update modules/ROOT/pages/7.4-release-notes.adoc Co-authored-by: Farzad Hayat <[email protected]> * Update modules/ROOT/pages/7.4-release-notes.adoc --------- Co-authored-by: Farzad Hayat <[email protected]> * DOC-2513: Sidebar could not be toggled until the skin was loaded. (#3439) * DOC-2513: Pasting a table now places the cursor after the table instead of into the last table cell. (#3438) * DOC-2513: Pasting a table now places the cursor after the table instead of into the last table cell. * DOC-2513: move to improvements sections. * DOC-2513: Format button would lose focus after action while navigating through keyboard. (#3440) * DOC-2513: Format button would lose focus after action while navigating through keyboard. * Update modules/ROOT/pages/7.4-release-notes.adoc * Update modules/ROOT/pages/7.4-release-notes.adoc * DOC-2513: Copying tables to the clipboard did not correctly separate cells and rows for the "text/plain" MIME type. (#3449) * DOC-2513: Copying tables to the clipboard did not correctly separate cells and rows for the text/plain MIME type. * Update modules/ROOT/pages/7.4-release-notes.adoc Co-authored-by: ltrouton <[email protected]> --------- Co-authored-by: ltrouton <[email protected]> * DOC-2513: New `importword_converter_options` option that allows customizing the conversion. (#3448) * DOC-2513: New importword_converter_options option that allows customizing the conversion. * Update modules/ROOT/partials/configuration/importword.adoc Co-authored-by: Farzad Hayat <[email protected]> * Update modules/ROOT/partials/configuration/importword.adoc * DOC-2513: Copy edits, fixes and seperation of partials. --------- Co-authored-by: Farzad Hayat <[email protected]> * DOC-2513: The editor resize handle was incorrectly rendered when all components were removed from the status bar. (#3450) * DOC-2513: Add TINY-11257 release note entry * Fix grammer * Update modules/ROOT/pages/7.4-release-notes.adoc Co-authored-by: Karl Kemister-Sheppard <[email protected]> --------- Co-authored-by: Karl Kemister-Sheppard <[email protected]> * DOC-2513: The image dialog lost focus after closing an image upload error alert. (#3446) * Placing the cursor after a table with a `<br>` element would misplace added newlines before the table instead of after it. (#3445) * Placing the cursor after a table with a BR element would misplace added newlines before the table instead of after it. * Update modules/ROOT/pages/7.4-release-notes.adoc * DOC-2513: Deleting a selection in a list element would sometimes prevent the input event from being dispatched. (#3444) * DOC-2513: Insert lists will no longer unexpectedly generate indented lists. (#3466) * DOC-2513: Insert lists will no longer unexpectedly generate indented lists. * DOC-2513: update to reflect fix rather than improvement. * DOC-2513: Cursor would jump to the previous line after pressing `shift + enter` if the annotation was applied. (#3464) * DOC-2513: Cursor would jump to the previous line after pressing shift + enter if the annotation was applied. * DOC-2513: add header and link to plugin doc in release notes. * DOC-2513: As you type spellchecking did not update when scrolling with the `autoresize` plugin active. (#3465) * DOC-2513: As you type spellchecking did not update when scrolling with the plugin active. * Update modules/ROOT/pages/7.4-release-notes.adoc * Update modules/ROOT/pages/7.4-release-notes.adoc Co-authored-by: tiny-ben-tran <[email protected]> --------- Co-authored-by: tiny-ben-tran <[email protected]> * DOC-2513: Made importword_service_url, exportword_service_url and exportpdf_service_url option more fault tolerant. (#3451) * DOC-2513: In read-only mode the editor now allows normal cursor movement and block element selection, including video playback & New property for all ui components. (#3463) * DOC-2513: In read-only mode the editor now allows normal cursor movement and block element selection, including video playback & New property for all ui components. * DOC-2513: Add state update section * DOC-2513: Fix including admon in tables * DOC-2513: Copy edits. * DOC-2513: Add `context` property to Custom Dialog Components and Custom Dialog Footer Buttons. * Update modules/ROOT/pages/dialog-components.adoc * Update modules/ROOT/pages/dialog-components.adoc * Update modules/ROOT/pages/dialog-components.adoc * Update modules/ROOT/pages/dialog-footer-buttons.adoc * Update modules/ROOT/pages/dialog-footer-buttons.adoc --------- Co-authored-by: shanmen-tiny <[email protected]> Co-authored-by: Farzad Hayatbakhsh <[email protected]> * DOC-2513: Added changelog for TinyMCE 7.4 core changes. * DOC-2513: Categories can now be declared as `locked`, making them readonly. (#3467) * DOC-2513: Categories can now be declared as locked, making them readonly. * Update modules/ROOT/pages/advanced-templates.adoc * Update modules/ROOT/examples/live-demos/advtemplate-readonly-template/example.js Co-authored-by: tiny-ben-tran <[email protected]> * Update modules/ROOT/examples/live-demos/advtemplate-readonly-template/example.js Co-authored-by: tiny-ben-tran <[email protected]> * Update modules/ROOT/examples/live-demos/advtemplate-readonly-template/index.js Co-authored-by: tiny-ben-tran <[email protected]> * Update modules/ROOT/examples/live-demos/advtemplate-readonly-template/index.js Co-authored-by: tiny-ben-tran <[email protected]> * Update modules/ROOT/pages/advanced-templates.adoc Co-authored-by: Farzad Hayat <[email protected]> * Update modules/ROOT/pages/advanced-templates.adoc Co-authored-by: tiny-ben-tran <[email protected]> * DOC-2513: Add advtemplate commands to editor-command-identifiers.adoc * DOC-2513: fix store variable declaration issue, add missing semicolons and added advtemplate_get_template throw error. * Update modules/ROOT/pages/7.4-release-notes.adoc * Update modules/ROOT/pages/advanced-templates.adoc Co-authored-by: Farzad Hayat <[email protected]> * Update modules/ROOT/pages/7.4-release-notes.adoc * Update modules/ROOT/pages/advanced-templates.adoc Co-authored-by: Farzad Hayat <[email protected]> * Update modules/ROOT/pages/advanced-templates.adoc Co-authored-by: Farzad Hayat <[email protected]> * Add missing semi colons and replace double quotes with single qoutes --------- Co-authored-by: tiny-ben-tran <[email protected]> Co-authored-by: Farzad Hayat <[email protected]> * DOC-2513: copy edits, template cleanup. * DOC-2513: remove Added focus function to view button api, as duplicate. * DOC-2513: Add known issues to 7.4 release notes. --------- Co-authored-by: Farzad Hayatbakhsh <[email protected]> Co-authored-by: ltrouton <[email protected]> Co-authored-by: tiny-ben-tran <[email protected]> Co-authored-by: shanmen-tiny <[email protected]> --------- Co-authored-by: Mitchell Crompton <[email protected]> Co-authored-by: shirqa <[email protected]> Co-authored-by: Shan <[email protected]> Co-authored-by: tiny-ben-tran <[email protected]> Co-authored-by: Hamza Benkhaldoun <[email protected]> Co-authored-by: Farzad Hayat <[email protected]> Co-authored-by: ltrouton <[email protected]>
1 parent c4d4193 commit 22f23a4

File tree

88 files changed

+2023
-254
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+2023
-254
lines changed

antora.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ asciidoc:
2626
# product variables
2727
productname: TinyMCE
2828
productmajorversion: 7
29-
productminorversion: '7.3'
29+
productminorversion: '7.4'
3030
##### product name in codeblock
3131
prodnamecode: tinymce
3232
#### more names
Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
const headers = {
2+
'Accept': 'application/json',
3+
'Content-Type': 'application/json',
4+
};
5+
6+
const handleResponse = (message) => (response) => {
7+
if (!response.ok) {
8+
return response.text().then((error) => {
9+
console.error(error);
10+
throw new Error(message);
11+
});
12+
}
13+
return response.json();
14+
};
15+
16+
const advtemplate_list = () =>
17+
fetch('/categories', {
18+
method: 'GET',
19+
headers,
20+
}).then(handleResponse('Failed to get template list'));
21+
22+
const advtemplate_get_template = (id) =>
23+
fetch(`/templates/${id}`, {
24+
method: 'GET',
25+
headers,
26+
}).then(handleResponse('Failed to get template'));
27+
28+
const advtemplate_create_category = (title) =>
29+
fetch('/categories', {
30+
method: 'POST',
31+
body: JSON.stringify({ title }),
32+
headers,
33+
}).then(handleResponse('Failed to create category'));
34+
35+
const advtemplate_create_template = (title, content, categoryId) =>
36+
fetch('/templates', {
37+
method: 'POST',
38+
body: JSON.stringify({ title, content, categoryId }),
39+
headers,
40+
}).then(handleResponse('Failed to create template'));
41+
42+
const advtemplate_rename_category = (id, title) =>
43+
fetch(`/categories/${id}`, {
44+
method: 'PUT',
45+
body: JSON.stringify({ title }),
46+
headers,
47+
}).then(handleResponse('Failed to rename category'));
48+
49+
const advtemplate_rename_template = (id, title) =>
50+
fetch(`/templates/${id}`, {
51+
method: 'PUT',
52+
body: JSON.stringify({ title }),
53+
headers,
54+
}).then(handleResponse('Failed to rename template'));
55+
56+
const advtemplate_delete_template = (id) =>
57+
fetch(`/templates/${id}`, {
58+
method: 'DELETE',
59+
headers,
60+
}).then(handleResponse('Failed to delete template'));
61+
62+
const advtemplate_delete_category = (id) =>
63+
fetch(`/categories/${id}`, {
64+
method: 'DELETE',
65+
headers,
66+
}).then(handleResponse('Failed to delete category'));
67+
68+
const advtemplate_move_template = (id, categoryId) =>
69+
fetch(`/templates/${id}`, {
70+
method: 'PATCH',
71+
body: JSON.stringify({ categoryId }),
72+
headers,
73+
}).then(handleResponse('Failed to move template'));
74+
75+
const advtemplate_move_category_items = (id, categoryId) =>
76+
fetch(`/categories/${id}`, {
77+
method: 'PATCH',
78+
body: JSON.stringify({ categoryId }),
79+
headers,
80+
}).then(handleResponse('Failed to move all templates to new category'));
81+
82+
tinymce.init({
83+
selector: 'textarea#readonly-locked-template',
84+
plugins: [
85+
'advlist', 'anchor', 'autolink', 'charmap', 'code', 'fullscreen',
86+
'help', 'image', 'insertdatetime', 'link', 'lists', 'media',
87+
'preview', 'searchreplace', 'table', 'visualblocks', 'advtemplate'
88+
],
89+
contextmenu: 'advtemplate',
90+
toolbar: 'addtemplate inserttemplate | undo redo | styles | bold italic underline strikethrough | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image',
91+
92+
advtemplate_list,
93+
advtemplate_get_template,
94+
advtemplate_create_category,
95+
advtemplate_create_template,
96+
advtemplate_rename_category,
97+
advtemplate_move_category_items,
98+
advtemplate_delete_category,
99+
advtemplate_rename_template,
100+
advtemplate_move_template,
101+
advtemplate_delete_template,
102+
});
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
<textarea id="readonly-locked-template">
2+
<h3 style="font-size: 1.5em; margin: 20px 0;">Working with Templates</h3>
3+
4+
<h4 style="font-size: 1.25em; margin: 15px 0;">Inserting a template</h4>
5+
<p style="margin: 10px 0;">To insert a template:</p>
6+
<ol style="margin-left: 20px;">
7+
<li>Click the <strong>Insert template</strong> toolbar button or select <strong>Insert template...</strong> from the <strong>Insert</strong> menu.</li>
8+
<li>In the <strong>Templates</strong> dialog, you'll see different categories:
9+
<ul style="margin-left: 20px;">
10+
<li>Regular categories with editable templates</li>
11+
<li>Locked categories (marked with a 🔒 icon) containing read-only templates</li>
12+
</ul>
13+
</li>
14+
<li>Select any template to preview its content.</li>
15+
<li>Click <strong>Insert</strong> or press <strong>Return</strong> to add the template to your document.</li>
16+
</ol>
17+
18+
<div style="margin: 15px 0; padding: 10px 15px; border-left: 4px solid #3498db; background-color: #f0f7fb;">
19+
<p><strong>Note:</strong> Templates in locked categories cannot be modified, but they can still be inserted into your document.</p>
20+
</div>
21+
22+
<h4 style="font-size: 1.25em; margin: 15px 0;">Adding a new template</h4>
23+
<p style="margin: 10px 0;">To add a new template:</p>
24+
<ol style="margin-left: 20px;">
25+
<li>Select the content in your document that you want to save as a template.</li>
26+
<li>Click the <strong>Save as template</strong> toolbar button or select <strong>Save as template…</strong> from the <strong>Tools</strong> menu.</li>
27+
<li>In the <strong>New template</strong> dialog:
28+
<ol style="margin-left: 20px;">
29+
<li>Enter a name for your template in the <strong>Template name</strong> field.</li>
30+
<li>Choose a category from the <strong>Category</strong> dropdown menu.
31+
<div style="margin: 15px 0; padding: 10px 15px; border-left: 4px solid #e74c3c; background-color: #fdf7f7;">
32+
<p><strong>Important:</strong> Locked categories (marked with a 🔒 icon) are read-only. You cannot save new templates to these categories.</p>
33+
</div>
34+
</li>
35+
<li>Click <strong>Save</strong> or press <strong>Return</strong>.</li>
36+
</ol>
37+
</li>
38+
</ol>
39+
40+
<h4 style="font-size: 1.25em; margin: 15px 0;">Managing Templates</h4>
41+
<p style="margin: 10px 0;">When working with templates, keep in mind:</p>
42+
<ul style="margin-left: 20px;">
43+
<li>Templates in regular categories can be edited, renamed, or deleted.</li>
44+
<li>Templates in locked categories (🔒) are read-only and cannot be:
45+
<ul style="margin-left: 20px;">
46+
<li>Modified or renamed</li>
47+
<li>Deleted</li>
48+
<li>Moved to different categories</li>
49+
</ul>
50+
</li>
51+
</ul>
52+
</textarea>

0 commit comments

Comments
 (0)