Examples
In this package we have also provided some customisation examples (available at guides_extension/src
) . Below is a brief description for each of them.
-
Context Menu
In this example we have customised thefile_options
context menu, to remove theDelete
andEdit
options, and replace theDuplicate
option with aDownload
option. -
Left Panel
In this example we have customised theleft tab panel
to have anothertab
titled “TEST EXTENSION”, and a correspondingtab panel
which has a label:Test Tab Panel
-
Right Panel
In this example we have customised theright tab panel
to have anothertab
titled “TEST EXTENSION”, and a correspondingtab panel
which has a label:New Tab Panel
-
Toolbar
In this example we have replaced theInsert Element
,Insert Paragraph
,Insert Numbered List
,Insert Bulleted List
buttons with a singleMore Insert Options
button containing all of these.
[Review App Examples]
-
Annotation Toolbox
In this example we have added another button to the annotation toolbox that opens the current review topic in AEM. -
Review Comment
In this example we have added replaced the user name with user info (consisiting full name and title of the commenter), added a unique comment ID, a mailTo icon, and added input fields for mentioning comment severity and rationale.
We have also added aaccept with modification
button on comments on the XMLEditor side that opens a dialogue. -
Comment Reply
In this example we have added replaced the user name with user info (consisiting full name and title of the commenter), and added a mailTo icon in the comment header. -
Inline Review Panel
In this file, we calculate and assign the unique comment ID, mentioned in theReview Comment
andComment Reply
examples.-
The
setCommentId
method sets the unique comment ID to each comment depending on the comment count. -
The
setUserInfo
sets the value of userInfo, using the full name and title for each comment. -
The
onNewCommentEvent
ensures thesetUserInfo
method is called for each new comment or reply. -
The
updatedProcessComments
function runs for each new comment Event, and ensures thatsetCommentId
is called if we get a new comment event.
-
-
Topic Reviews Panel: This file extends Inline Review Panel so that added customisations work on the Review App side as well.
-
Accept with Modification Dialog
This is an example of adding new widgets to the app. Here we have created a new dialogue, that has two input text fields:Revised Text
andAdjudicator Comment Rationale
-
Save Revision
This is asn example of how to update an exisitng dialog. We add a button for publish in this. We allow modifying the content of the dialog. Refer to its json here:save_revision
Here’s the review panel before and after customisation: