Merge pull request #17006 from Snuffleupagus/rm-enableStampEditor-pref
Remove the `enableStampEditor` preference
This commit is contained in:
commit
0fc899338c
@ -81,10 +81,6 @@
|
|||||||
"description": "Whether to allow execution of active content (JavaScript) by PDF files.",
|
"description": "Whether to allow execution of active content (JavaScript) by PDF files.",
|
||||||
"default": false
|
"default": false
|
||||||
},
|
},
|
||||||
"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).",
|
||||||
|
@ -542,8 +542,8 @@ const PDFViewerApplication = {
|
|||||||
|
|
||||||
if (appConfig.annotationEditorParams) {
|
if (appConfig.annotationEditorParams) {
|
||||||
if (annotationEditorMode !== AnnotationEditorType.DISABLE) {
|
if (annotationEditorMode !== AnnotationEditorType.DISABLE) {
|
||||||
if (AppOptions.get("enableStampEditor") && isOffscreenCanvasSupported) {
|
if (!isOffscreenCanvasSupported) {
|
||||||
appConfig.toolbar?.editorStampButton?.classList.remove("hidden");
|
appConfig.toolbar?.editorStampButton?.classList.add("hidden");
|
||||||
}
|
}
|
||||||
|
|
||||||
this.annotationEditorParams = new AnnotationEditorParams(
|
this.annotationEditorParams = new AnnotationEditorParams(
|
||||||
|
@ -103,14 +103,6 @@ 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",
|
||||||
|
@ -352,7 +352,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="35" 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="35" 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 hidden" disabled="disabled" title="Add or edit images" role="radio" aria-checked="false" aria-controls="editorStampParamsToolbar" tabindex="36" data-l10n-id="pdfjs-editor-stamp-button">
|
<button id="editorStamp" class="toolbarButton" disabled="disabled" title="Add or edit images" role="radio" aria-checked="false" aria-controls="editorStampParamsToolbar" tabindex="36" 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