Skip to content

PDFs do not preview and instead try to open a page when in Edit mode. #35504

Description

@nathan-hildebrandt

Problem Statement

When editing a page, if your content contains links to a PDF file, the link while in edit mode will attempt to open the pdf link as if it were a page, instead of opening the PDF file.

Steps to Reproduce

pdfpreview.mp4

Acceptance Criteria

I think a click intercept to maybe open a new tab with the PDF file would be the best case scenario, this way it doesn't navigate the user away from the page, but shows that their link is working without having to copy the url and open the page on another tab.

dotCMS Version

Evergreen 26.04.11-01

Severity

Medium - Some functionality impacted

Links

https://dotcms.freshdesk.com/a/tickets/36746

TinyMCE props I used.

{
"menubar": false,
"statusbar": true,
"plugins": "advlist anchor autolink lists link image charmap hr searchreplace wordcount visualchars emoticons paste textcolor colorpicker textpattern validation dotimageclipboard",
"height": 450,
"resize": true,
"image_advtab": true,
"image_caption": true,
"browser_spellcheck": true,
"paste_auto_cleanup_on_paste": true,
"paste_strip_class_attributes": "mso",
"convert_urls": true,
"relative_urls": true,
"document_base_url": "/",
"toolbar1": "undo redo | formatselect | bold italic | bullist numlist outdent indent | link unlink | image dotimageclipboard",
"content_css": "/application/wysiwyg/wysiwyg.css",
"file_picker_callback": "function(callback, value, meta) { cmsFileBrowser(callback, value, meta); }",
"urlconverter_callback": "cmsURLConverter",
"link_class_list": [
{"title": "None", "value": ""},
{"title": "External Link Disclaimer", "value": "link-disclaimer"}
]
}

Metadata

Metadata

Assignees

Type

Projects

Status
In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions