Revert "Remove the enableStampEditor
preference" (bug 1879588)
This reverts commit e820688510
.
This commit is contained in:
parent
7cfcd00a38
commit
bcc95460b6
@ -72,6 +72,10 @@
|
|||||||
"type": "string",
|
"type": "string",
|
||||||
"default": "yellow=#FFFF98,green=#53FFBC,blue=#80EBFF,pink=#FFCBE6,red=#FF4F5F"
|
"default": "yellow=#FFFF98,green=#53FFBC,blue=#80EBFF,pink=#FFCBE6,red=#FF4F5F"
|
||||||
},
|
},
|
||||||
|
"enableStampEditor": {
|
||||||
|
"type": "boolean",
|
||||||
|
"default": true
|
||||||
|
},
|
||||||
"disableRange": {
|
"disableRange": {
|
||||||
"title": "Disable range requests",
|
"title": "Disable range requests",
|
||||||
"description": "Whether to disable range requests (not recommended).",
|
"description": "Whether to disable range requests (not recommended).",
|
||||||
|
@ -453,8 +453,8 @@ const PDFViewerApplication = {
|
|||||||
|
|
||||||
if (appConfig.annotationEditorParams) {
|
if (appConfig.annotationEditorParams) {
|
||||||
if (annotationEditorMode !== AnnotationEditorType.DISABLE) {
|
if (annotationEditorMode !== AnnotationEditorType.DISABLE) {
|
||||||
if (!isOffscreenCanvasSupported) {
|
if (AppOptions.get("enableStampEditor") && isOffscreenCanvasSupported) {
|
||||||
appConfig.toolbar?.editorStampButton?.classList.add("hidden");
|
appConfig.toolbar?.editorStampButton?.classList.remove("hidden");
|
||||||
}
|
}
|
||||||
|
|
||||||
const editorHighlightButton = appConfig.toolbar?.editorHighlightButton;
|
const editorHighlightButton = appConfig.toolbar?.editorHighlightButton;
|
||||||
|
@ -158,6 +158,14 @@ const defaultOptions = {
|
|||||||
value: typeof PDFJSDev === "undefined" || !PDFJSDev.test("CHROME"),
|
value: typeof PDFJSDev === "undefined" || !PDFJSDev.test("CHROME"),
|
||||||
kind: OptionKind.VIEWER + OptionKind.PREFERENCE,
|
kind: OptionKind.VIEWER + OptionKind.PREFERENCE,
|
||||||
},
|
},
|
||||||
|
enableStampEditor: {
|
||||||
|
// We'll probably want to make some experiments before enabling this
|
||||||
|
// in Firefox release, but it has to be temporary.
|
||||||
|
// TODO: remove it when unnecessary.
|
||||||
|
/** @type {boolean} */
|
||||||
|
value: true,
|
||||||
|
kind: OptionKind.VIEWER + OptionKind.PREFERENCE,
|
||||||
|
},
|
||||||
externalLinkRel: {
|
externalLinkRel: {
|
||||||
/** @type {string} */
|
/** @type {string} */
|
||||||
value: "noopener noreferrer nofollow",
|
value: "noopener noreferrer nofollow",
|
||||||
|
@ -360,7 +360,7 @@ See https://github.com/adobe-type-tools/cmap-resources
|
|||||||
<button id="editorInk" class="toolbarButton" disabled="disabled" title="Draw" role="radio" aria-checked="false" aria-controls="editorInkParamsToolbar" tabindex="33" data-l10n-id="pdfjs-editor-ink-button">
|
<button id="editorInk" class="toolbarButton" disabled="disabled" title="Draw" role="radio" aria-checked="false" aria-controls="editorInkParamsToolbar" tabindex="33" data-l10n-id="pdfjs-editor-ink-button">
|
||||||
<span data-l10n-id="pdfjs-editor-ink-button-label">Draw</span>
|
<span data-l10n-id="pdfjs-editor-ink-button-label">Draw</span>
|
||||||
</button>
|
</button>
|
||||||
<button id="editorStamp" class="toolbarButton" disabled="disabled" title="Add or edit images" role="radio" aria-checked="false" aria-controls="editorStampParamsToolbar" tabindex="34" data-l10n-id="pdfjs-editor-stamp-button">
|
<button id="editorStamp" class="toolbarButton hidden" disabled="disabled" title="Add or edit images" role="radio" aria-checked="false" aria-controls="editorStampParamsToolbar" tabindex="34" data-l10n-id="pdfjs-editor-stamp-button">
|
||||||
<span data-l10n-id="pdfjs-editor-stamp-button-label">Add or edit images</span>
|
<span data-l10n-id="pdfjs-editor-stamp-button-label">Add or edit images</span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user