Skip to content
This repository was archived by the owner on Jul 26, 2021. It is now read-only.

Commit 621c3d9

Browse files
authored
Merge pull request #35 from groupdocs-annotation/enable-right-click
added config enable right click
2 parents ae1a834 + 84ebc72 commit 621c3d9

File tree

5 files changed

+20
-3
lines changed

5 files changed

+20
-3
lines changed

configuration.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ common:
3838
# File browser
3939
# Set false to disable document browse
4040
browse: true
41+
# Set false to disable right mouse click
42+
enableRightClick: true
4143

4244
################################################
4345
# GroupDocs.Annotation configurations

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
},
1818
"homepage": "https://github.com/groupdocs-annotation/GroupDocs.Annotation-for-Java-Spring#readme",
1919
"dependencies": {
20-
"@groupdocs.examples.jquery/annotation": "^0.8.0",
21-
"@groupdocs.examples.jquery/common": "^0.8.0",
22-
"@groupdocs.examples.jquery/viewer": "^0.8.0"
20+
"@groupdocs.examples.jquery/annotation": "^0.9.0",
21+
"@groupdocs.examples.jquery/common": "^0.9.0",
22+
"@groupdocs.examples.jquery/viewer": "^0.9.0"
2323
},
2424
"devDependencies": {
2525
"gulp": "^4.0.0"

src/main/java/com/groupdocs/ui/config/CommonConfiguration.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ public class CommonConfiguration {
2929
@Value("#{new Boolean('${common.rewrite}')}")
3030
private Boolean rewrite;
3131

32+
@Value("#{new Boolean('${common.enableRightClick}')}")
33+
private Boolean enableRightClick;
34+
3235
public boolean isPageSelector() {
3336
return pageSelector;
3437
}
@@ -77,6 +80,14 @@ public void setRewrite(boolean rewrite) {
7780
this.rewrite = rewrite;
7881
}
7982

83+
public Boolean getEnableRightClick() {
84+
return enableRightClick;
85+
}
86+
87+
public void setEnableRightClick(Boolean enableRightClick) {
88+
this.enableRightClick = enableRightClick;
89+
}
90+
8091
@Override
8192
public String toString() {
8293
return "CommonConfiguration{" +
@@ -86,6 +97,7 @@ public String toString() {
8697
", print=" + print +
8798
", browse=" + browse +
8899
", rewrite=" + rewrite +
100+
", enableRightClick=" + enableRightClick +
89101
'}';
90102
}
91103
}

src/main/resources/defaultConfiguration.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ common:
3939
# File browser
4040
# Set false to disable document browse
4141
browse: true
42+
# Set false to disable right mouse click
43+
enableRightClick: true
4244

4345
################################################
4446
# GroupDocs.Annotation configurations

src/main/resources/templates/annotation.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
print: /*[[${annotationConfiguration.print}]]*/'',
4444
browse: /*[[${annotationConfiguration.browse}]]*/'',
4545
rewrite: /*[[${annotationConfiguration.rewrite}]]*/'',
46+
enableRightClick: /*[[${annotationConfiguration.enableRightClick}]]*/'',
4647
textAnnotation: /*[[${annotationConfiguration.textAnnotation}]]*/'',
4748
areaAnnotation: /*[[${annotationConfiguration.areaAnnotation}]]*/'',
4849
pointAnnotation: /*[[${annotationConfiguration.pointAnnotation}]]*/'',

0 commit comments

Comments
 (0)