-
Notifications
You must be signed in to change notification settings - Fork 220
DOC-3246: Suggested Edits and User Lookup API documentation #3798
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 65 commits
Commits
Show all changes
69 commits
Select commit
Hold shift + click to select a range
ced4230
Initial setup
56f01d9
add live demo template
facd970
Update API sections
0e1756f
Add description of plugin and examples for API options
b1acbb3
Comment out note about stacked changes and minor copy edits
9ba47ed
add live demo
f252ba0
rename plugin to Suggested Edits
8fa5056
replace all instanes of plugin name and code
99870e9
Update docs to include Review Permissions V1
c4680c9
Fix demo for Review Permissions
b945b79
Add Suggestions section and demo
980adc3
Revise Suggestions content
7afd9a1
Initial setup
c9ba93b
add live demo template
db52e97
Update API sections
ce4c43a
Add description of plugin and examples for API options
f9b3cf0
Comment out note about stacked changes and minor copy edits
dfba8fc
add live demo
21c4866
rename plugin to Suggested Edits
26fd1bf
replace all instanes of plugin name and code
4db7c6c
Update docs to include Review Permissions V1
6f52866
Fix demo for Review Permissions
54dd2fc
Add Suggestions section and demo
9b7ef26
Revise Suggestions content
25127a5
DOC-3174: Updating suggestedits docs
MitchC1999 a93e0ac
Merge branch 'feature/7/DOC-3174' of https://github.com/tinymce/tinym…
MitchC1999 584785f
DOC-3174: Remove unused options
MitchC1999 7791c9a
Update explanation of plugin and add UID options
c93b4a3
fix UID options
e978936
Update interactive demo
92a6b0a
Update suggestededits_access demo
55674d4
fix UID options
cd51e67
Update option and api examples
811fe8f
Fix UID options
6db0572
DOC-3174: Adding icons
MitchC1999 ef516e7
DOC-3174: Add `Using the User Lookup API` page
kimwoodfield 4a826c5
Update UID options partials
61d2d7f
DOC-3174: Some edits
MitchC1999 ba633dc
DOC-3174: Add `UserLookup` partials to `revisionhistory` and `tinycom…
kimwoodfield da9ae91
DOC-3174: Replace reference to `userDb` with `userinfos`
kimwoodfield 6da83e8
DOC-3174: Remove usage of `uid` in `suggestededits`
kimwoodfield 73b8ad2
DOC-3174: Fix indentations within `Types of suggestions`
kimwoodfield b05d7dd
DOC-3174: Update interactive demos and examples for `embedded` mode i…
kimwoodfield f6365f1
DOC-3174: Update interactive demos and examples for `revisionhistory`
kimwoodfield 193d1c4
DOC-3174: Rewrite suggested edits
MitchC1999 e3ec479
DOC-3174: Edits
MitchC1999 71b19af
DOC-3246: More docs
MitchC1999 791592a
DOC-3246: Fixed, premium-plugin table, removed template material, fix…
kemister85 461d4e1
DOC-3246: Add deprecation messaging to `tinycomments_fetch_author_inf…
kimwoodfield bac3a5b
DOC-3246: Update interactive examples on `comments-with-mentions` page
kimwoodfield 2f64681
DOC-3246: Include `user_id` and `fetch_users` options in `Required Co…
kimwoodfield 7bdb429
DOC-3246: Update `tinycomments_mentions_enabled` to include `user_id`…
kimwoodfield 43dc3a3
DOC-3246: Demo updates
MitchC1999 85b8ac5
Apply suggestions from code review
MitchC1999 b4185ec
DOC-3246: Use lookup over `find` in `fetch_users`
kimwoodfield 212d65a
DOC-3246: Updates to `fetch_users` partial
kimwoodfield 767d81f
DOC-3246: Improve examples and access option
MitchC1999 5cc6bf1
DOC-3246: Update fetch_users option across other plugin examples
kimwoodfield 152ae37
DOC-3246: Single quotes only
kimwoodfield 129183b
Apply suggestions from code review
MitchC1999 dfadc29
DOC-3246: Improve API examples
MitchC1999 32434fc
DOC-3246: Improvements
MitchC1999 cbc5d5d
Apply suggestions from code review
MitchC1999 4edf9b8
DOC-3246: Final edits
MitchC1999 7881557
DOC-3246: Final final edit
MitchC1999 f160ba4
DOC-3246: Docs tweaks
kimwoodfield 24d5e4b
DOC-3246: userlookup api docs restructure and organisation update.
kemister85 d4856c7
Apply suggestions from code review
MitchC1999 d95816a
DOC-3246: Final improvements
MitchC1999 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
modules/ROOT/examples/live-demos/suggestededits-access-feedback/example.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| const tinymceElement = document.querySelector('textarea#suggested-edits'); | ||
| const model = tinymceElement.getAttribute('suggestededits-model'); | ||
|
|
||
| tinymce.init({ | ||
| selector: 'textarea#suggested-edits', | ||
| height: 500, | ||
| plugins: 'suggestededits advlist anchor autolink code charmap emoticons fullscreen help image link lists media preview searchreplace table', | ||
| toolbar: 'undo redo | suggestededits | styles fontsizeinput | bold italic | align bullist numlist | table link image | code', | ||
| user_id: 'michaelcook', | ||
| fetch_users: (userIds) => Promise.all(userIds | ||
| .map((userId) => | ||
| fetch(`/users/${userId}`) // Fetch user data from the server | ||
| .then((response) => response.json()) | ||
| .catch(() => ({ id: userId })) // Still return a valid user object even if the fetch fails | ||
| )), | ||
| content_style: 'body { font-family:Helvetica,Arial,sans-serif; font-size:16px }', | ||
| readonly: false, // Set to true to prevent edits to the content | ||
| suggestededits_access: 'feedback', // Set this value to restrict the permissions in the Suggested Edits view | ||
| suggestededits_content: 'html', | ||
| suggestededits_model: model | ||
| }); |
44 changes: 44 additions & 0 deletions
44
modules/ROOT/examples/live-demos/suggestededits-access-feedback/index.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| <textarea id="suggestededits-access-feedback"> | ||
| {{logofordemoshtml}} | ||
|
|
||
| <h2 style="text-align: center;">Welcome to the TinyMCE Suggested Edits demo!</h2> | ||
|
|
||
| <p style="text-align: center;">Try out the Suggested Edits feature by typing in the editor and then clicking the Review Changes button in the toolbar.</p> | ||
|
|
||
| <p style="text-align: center;">And visit the <a href="https://www.tiny.cloud/pricing">pricing page</a> to learn more about our Premium plugins.</p> | ||
|
|
||
| <h2>A simple table to play with</h2> | ||
|
|
||
| <table style="border-collapse: collapse; width: 100%;" border="1"> | ||
| <thead> | ||
| <tr style="text-align: left;"> | ||
| <th>Product</th> | ||
| <th>Cost</th> | ||
| <th>Really?</th> | ||
| </tr> | ||
| </thead> | ||
| <tbody> | ||
| <tr> | ||
| <td>TinyMCE Cloud</td> | ||
| <td>Get started for free</td> | ||
| <td><strong>Yes!</strong></td> | ||
| </tr> | ||
| <tr> | ||
| <td>Plupload</td> | ||
| <td>Free</td> | ||
| <td><strong>Yes!</strong></td> | ||
| </tr> | ||
| </tbody> | ||
| </table> | ||
|
|
||
| <h2>Found a bug?</h2> | ||
|
|
||
| <p>If you believe you have found a bug please create an issue on the <a href="https://github.com/tinymce/tinymce/issues">GitHub repo</a> to report it to the developers.</p> | ||
|
|
||
| <h2>Finally…</h2> | ||
|
|
||
| <p>Don’t forget to check out <a href="http://www.plupload.com" target="_blank">Plupload</a>, the upload solution featuring HTML5 upload support.</p> | ||
| <p>Thanks for supporting TinyMCE. We hope it helps you and your users create great content.</p> | ||
| <p>All the best from the TinyMCE team.</p> | ||
|
|
||
| </textarea> |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.