Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.1] TinyMCE: can't insert media in article #43365

Closed
drmenzelit opened this issue Apr 25, 2024 · 3 comments · May be fixed by #43374
Closed

[5.1] TinyMCE: can't insert media in article #43365

drmenzelit opened this issue Apr 25, 2024 · 3 comments · May be fixed by #43374

Comments

@drmenzelit
Copy link
Contributor

Steps to reproduce the issue

In an article try to insert a PDF file (CMS Content -> Media)

Expected result

You can insert a link to or you get an iframe with the PDF

Actual result

Javascript error, insert button doesn't work for download PDF. Iframe seems to be inserted, after saving the article, the iframe dissapears

grafik

System information (as much as possible)

Joomla 5.1
PHP 8.1.28 / 8.2.18
MySQL 8.0.35 / MariaDB 10.6.15

Additional comments

@brianteeman
Copy link
Contributor

Confirm the error with the download
No problem with the insert, it produces an object which is saved without error
image

@Quy Quy added the bug label Apr 25, 2024
@Fedik
Copy link
Member

Fedik commented Apr 25, 2024

This need to be relaced to editorInst.getSelection()

} else if (Joomla.editors.instances[editor].getSelection() !== '') {

I will make PR, later

@Fedik
Copy link
Member

Fedik commented Apr 26, 2024

Please test #43374

@Fedik Fedik closed this as completed Apr 26, 2024
@Fedik Fedik linked a pull request Apr 26, 2024 that will close this issue
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants