DOC-3243: New view_show option to display a specified view on initialization#4021
Open
kemister85 wants to merge 1 commit intofeature/8.4.0/DOC-3243from
Open
DOC-3243: New view_show option to display a specified view on initialization#4021kemister85 wants to merge 1 commit intofeature/8.4.0/DOC-3243from
kemister85 wants to merge 1 commit intofeature/8.4.0/DOC-3243from
Conversation
…initialization
ArvinJ-H
approved these changes
Mar 16, 2026
MitchC1999
approved these changes
Mar 16, 2026
| <textarea class="tox-view__pane_panel" style="width: 100%; height: 100%; resize: none; padding: 0.5em"> | ||
| ${editorContent} | ||
| </textarea> | ||
| </div>`.replace(/\s+/g, ''); |
Contributor
There was a problem hiding this comment.
Suggested change
| </div>`.replace(/\s+/g, ''); | |
| <textarea class="my-textarea" style="width: 100%; height: 100%; resize: none; padding: 0.5em"></textarea> | |
| </div>`; | |
| container.querySelector('.my-textarea').value = editorContent; |
| === New `view_show` option to display a specified view on initialization. | ||
| // #TINY-11967 | ||
|
|
||
| Previously, integrators could not configure the editor to open with a specific view (such as Suggested Edits or Revision History) displayed on initialization. This was needed when users would only need to resolve suggested changes or review content, or when the current user had permission only to review changes. |
Contributor
There was a problem hiding this comment.
Suggested change
| Previously, integrators could not configure the editor to open with a specific view (such as Suggested Edits or Revision History) displayed on initialization. This was needed when users would only need to resolve suggested changes or review content, or when the current user had permission only to review changes. |
Since this is a new feature, we don't need to describe the previous behaviour.
| [[view_show]] | ||
| == `+view_show+` | ||
|
|
||
| This option allows the specified view to be displayed on editor initialization. It behaves similarly to xref:customsidebar.adoc#sidebar_show[`+sidebar_show+`] but applies to views and takes precedence when both are configured. Views and sidebars can both be set to show on init. |
Contributor
There was a problem hiding this comment.
Suggested change
| This option allows the specified view to be displayed on editor initialization. It behaves similarly to xref:customsidebar.adoc#sidebar_show[`+sidebar_show+`] but applies to views and takes precedence when both are configured. Views and sidebars can both be set to show on init. | |
| This option allows the specified view to be displayed on editor initialization. It behaves similarly to xref:customsidebar.adoc#sidebar_show[`+sidebar_show+`] but applies to views and takes precedence when both are configured. Views and sidebars can both be set to show on init, with the sidebar shown once the view is closed. |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Ticket: DOC-3243
Site: Staging links:
Changes:
modules/ROOT/pages/8.4.0-release-notes.adoc(Additions section): Newview_showoption to display a specified view on initialization.modules/ROOT/partials/configuration/view_show.adoc– configuration option partial with description, plugin links, and examples (premium plugin and custom view).modules/ROOT/pages/custom-view.adoc– added Options section including view_show partial; restructured so Toggling and Querying remain under Editor View API.modules/ROOT/partials/plugins/suggestededits-open-view.adocand included inmodules/ROOT/pages/suggestededits.adoc.modules/ROOT/partials/plugins/revisionhistory-open-view.adocand included inmodules/ROOT/pages/revisionhistory.adoc.modules/ROOT/partials/plugins/advcode-open-view.adocand included inmodules/ROOT/pages/advcode.adoc.modules/ROOT/examples/live-demos/custom-view/index.js– removed.replace(/\s+/g, '')that stripped spaces from editor content; set textarea value separately to preserve content. - broken 2 years ago.Pre-checks:
modules/ROOT/nav.adochas been updated (if applicable).Files removed have been deleted, not just excluded from the build (if applicable).Major or minor version changes have updated thesupported-versions.adoctable.Review: