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

[4.0] Drag n Drop Images in TinyMCE kills site #27477

Closed
brianteeman opened this issue Jan 11, 2020 · 16 comments
Closed

[4.0] Drag n Drop Images in TinyMCE kills site #27477

brianteeman opened this issue Jan 11, 2020 · 16 comments

Comments

@brianteeman
Copy link
Contributor

Well not exactly kills it but it will do eventually

In Joomla 3 a drag and drop image plugin was added so that you could add images to your content more easily and the images would be saved automatically in a specified folder on your server.

In Joomla 4 that isnt working at all

Instead the native tinymce drag and drop image is used. This is a problem because this saves the image as a base64 blob in the database. Obviously this is not desirable as a user uploading a large image will see it take a long time to save the article and very quickly the database will get huge. It is also really slow to render an image this way.

@richard67
Copy link
Member

richard67 commented Jan 11, 2020

@brianteeman Do you think this is a release blocker? To me it seems it could be one.

@jwaisner
Copy link
Member

I would say this is a release blocker. We definitely don't want to impact DB performance as well as size if it is being loaded this way.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/27477.

@HLeithner
Copy link
Member

@bembelimen is this a regression of the tinymce 4.0 update? Can you have a look at this?

@infograf768
Copy link
Member

Setting as release blocker

@brianteeman
Copy link
Contributor Author

Setting paste_data_images to false will prevent this happening but it still wont fix the non working joomla drag and drop plugin

@wilsonge wilsonge changed the title [4.0] Drag n Drop kills site [4.0] Drag n Drop Images in TinyMCE kills site Jan 19, 2020
@wilsonge wilsonge added this to To Do in [4.0] Javascript via automation Jan 19, 2020
@bembelimen
Copy link
Contributor

There are several reasons for this broken behavior:

@Fedik

This comment has been minimized.

@Fedik
Copy link
Member

Fedik commented Feb 15, 2020

ah, okay, I see

* Api Media Controller
*
* This is NO public api controller, it is internal for the com_media component only!
*

@Fedik
Copy link
Member

Fedik commented Feb 15, 2020

To be able to fix this issue someone need to write an upload handler.
Or we just copy old one? https://github.com/joomla/joomla-cms/blob/staging/administrator/components/com_media/controllers/file.json.php 😃

@brianteeman
Copy link
Contributor Author

brianteeman commented Feb 15, 2020

Seriously - the all singing all dancing new media manager doesnt have an upload handler

rm -rf /com_media

npm i upploadjs.org

https://uppload.js.org

@Fedik
Copy link
Member

Fedik commented Feb 15, 2020

Seriously - the all singing all dancing new media manager doesnt have an upload handler

I had similar thoughts 😄

@dgrammatiko
Copy link
Contributor

I'll post a patch tomorrow

@dgrammatiko
Copy link
Contributor

PR: #28928

@richard67
Copy link
Member

@dgrammatiko Shall I close this issue because there is PR #28928 ?

@dgrammatiko
Copy link
Contributor

Yes😉

@richard67
Copy link
Member

Closing as having PR, see above.

[4.0] Javascript automation moved this from To Do to Completed May 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
[4.0] Javascript
  
Completed
Development

No branches or pull requests

10 participants