J 5.1.1: TinyMCE - embedded PDF documents do not display

General questions relating to Joomla! 5.x.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Post Reply
mtgg
Joomla! Apprentice
Joomla! Apprentice
Posts: 37
Joined: Thu Apr 04, 2024 11:17 pm

J 5.1.1: TinyMCE - embedded PDF documents do not display

Post by mtgg » Wed May 29, 2024 10:50 pm

For background, read viewtopic.php?f=808&p=3722934.

Using TinyMCE to embed a PDF document in an article worked in Joomla 5.0.3. Since Joomla 5.1.something, there has been a change; the version of TinyMCE has been updated from 6.7.3 to 6.8.3. The new version of TinyMCE changes the way that embedded PDF documents are inserted: in J 5.0.3 the insertion method relied on the <OBJECT> tag; in J! 5.1 the insertion method relies on an <IFRAME> tag.

I say that there is a defect in Joomla 5.1.1 that breaks the ability to insert PDF documents within articles using TinyMCE.

SharkyKZ
Joomla! Hero
Joomla! Hero
Posts: 2995
Joined: Fri Jul 05, 2013 10:35 am
Location: Parts Unknown

Re: J 5.1.1: TinyMCE - embedded PDF documents do not display

Post by SharkyKZ » Thu May 30, 2024 7:09 am

It's not a bug, it's a feature :pop viewtopic.php?f=834&t=1008580.

mtgg
Joomla! Apprentice
Joomla! Apprentice
Posts: 37
Joined: Thu Apr 04, 2024 11:17 pm

Re: J 5.1.1: TinyMCE - embedded PDF documents do not display

Post by mtgg » Thu May 30, 2024 9:51 am

It’s a feature that doesn’t work.

gws
Joomla! Champion
Joomla! Champion
Posts: 6062
Joined: Tue Aug 23, 2005 1:56 pm
Location: South coast, UK
Contact:

Re: J 5.1.1: TinyMCE - embedded PDF documents do not display

Post by gws » Thu May 30, 2024 9:55 am

mtgg wrote: Thu May 30, 2024 9:51 am It’s a feature that doesn’t work.
Yes an annoying upgrade.

mtgg
Joomla! Apprentice
Joomla! Apprentice
Posts: 37
Joined: Thu Apr 04, 2024 11:17 pm

Re: J 5.1.1: TinyMCE - embedded PDF documents do not display

Post by mtgg » Fri May 31, 2024 9:37 pm

As a workaround to using TinyMCE to embed a PDF document, change the editor to CodeMirror and use the following:

Code: Select all

<object data="images/myPDF.pdf" type="application/pdf" width="800" height="600">
  You don't have a pdf plugin, but you can <a download="" href="images/mPDF.pdf"> download the pdf file.</a></object>
assuming you want to embed the PDF document named images/mPDF.pdf. Tested with J 5.1.1 and Firefox.

This is an unsatisfactory solution in my opinion to work around the problem currently in Joomla 5.1 with its upgraded TinyMCE.

mtgg
Joomla! Apprentice
Joomla! Apprentice
Posts: 37
Joined: Thu Apr 04, 2024 11:17 pm

Re: J 5.1.1: TinyMCE - embedded PDF documents do not display

Post by mtgg » Sat Jun 01, 2024 3:33 am

There is almost an admission that the change was not implemented properly: https://issues.joomla.org/tracker/joomla-cms/43407.


Post Reply

Return to “General Questions/New to Joomla! 5.x”