Prestashop: issue JS when editing an image in TinyMCE

Created on 15 Oct 2018  路  12Comments  路  Source: PrestaShop/PrestaShop

Describe the bug
issue JS when editing a CMS page with an image in the wysiwyg

To Reproduce
Steps to reproduce the behavior:

  1. Go to Design > Pages
  2. Edit a CMS page
  3. Add an image in the wysiwyg editor & save
  4. Edit the CMS page and click on the image in the wysiwyg editor
  5. See error, you can't edit the image

Screenshots
capture d ecran!UNITO-UNDERSCORE!437

Additionnal information
PrestaShop version: 1.7.4.3
PHP version: N/A

1.7.4.3 1.7.6.0 BO Bug Fixed Major

Most helpful comment

@PrestaShop/prestashop-core-developers Would an update of tinyMCE to 4.6 be considered a BC break ? If yes, what about we use TinyMCE 4.6 in migrated pages ? Since the migration uses new Twig templates instead of smarty templates, we already make a BC break here. So we would use this opportunity and use an up-to-date tinyMCE version.

It's 2020 so I ask again 馃槃I think it would be nice to use TinyMCE 4.6 in migrated pages to solve this issue and move forward.
Ping @NeOMakinG @eternoendless

All 12 comments

It's a TinyMce bug. @eternoendless What we can do for that?

@marionf I just checked in the migrated page and it seems to be gone (although I think it should be unrelated 馃槅)
So for me it's a "Cant reproduce" now

Can you check ?

@matks I can reproduce it with 1.7.6.x branch

capture d'茅cran_1684

Interesting 馃I tried with Firefox and Chrome, nothing.
Do you use the "upload an image" window, like this ?
Capture d鈥檈虂cran 2019-06-14 a虁 17 46 48

Also I see you have multiple languages installed, when I tried with only one. Might come from that

I have the same issue with only one language

https://drive.google.com/open?id=1ymPge3H4eFa-aM2IVnwGcl_a_REEbvKi

I have the same issue with only one language

https://drive.google.com/open?id=1ymPge3H4eFa-aM2IVnwGcl_a_REEbvKi

Thanks for the video, I understand now. I did not understand what was meant by "See error, you can't edit the image".

As Pierre said, this is an issue from TinyMCE. It seems to be fixed in TinyMCE 4.6 while we are using a modified 4.0.16 version.

@marionf I suggest we update the title of the issue as this happens in EVERY page where we use TinyMCE, including the Product page.

@PrestaShop/prestashop-core-developers Would an update of tinyMCE to 4.6 be considered a BC break ? If yes, what about we use TinyMCE 4.6 in migrated pages ? Since the migration uses new Twig templates instead of smarty templates, we already make a BC break here. So we would use this opportunity and use an up-to-date tinyMCE version.

Is there any solution for this issue. Its coming in google chrome only and now a days 70% people using google chrome.

I see in prestashop 1.7.6.1 we using tinymce 4.0.16 which is ages old and used same version in prestashop 1.6 also. Now there is lot of new features available with new versions of tinymce.

When people use content and images rich html in description and CMS pages selecting images in text is too annoying. I had to implement a fix to use image selection but after upgrading to latest version that fix jnot working.

Please update me on this issue and its status

Hi @beniwal,

This issue is added to our bug roadmap.
Sorry, it is not fixed yet.
PrestaShop is an open source project, so it can be solved before if someone submits a pull request to solve it.

Thanks!

@PrestaShop/prestashop-core-developers Would an update of tinyMCE to 4.6 be considered a BC break ? If yes, what about we use TinyMCE 4.6 in migrated pages ? Since the migration uses new Twig templates instead of smarty templates, we already make a BC break here. So we would use this opportunity and use an up-to-date tinyMCE version.

It's 2020 so I ask again 馃槃I think it would be nice to use TinyMCE 4.6 in migrated pages to solve this issue and move forward.
Ping @NeOMakinG @eternoendless

I agree, let's work on it

@NeOMakinG Thanks !

FYI, tinyMCE is available on the following Symfony pages: (see https://github.com/PrestaShop/PrestaShop/issues/13206)

  • Add/edit categories
  • Add/edit CMS page
  • Add/edit brands
  • Add/edit a supplier
Was this page helpful?
0 / 5 - 0 ratings

Related issues

esistgut picture esistgut  路  3Comments

PrestaShark picture PrestaShark  路  3Comments

Van-peterson picture Van-peterson  路  3Comments

khouloudbelguith picture khouloudbelguith  路  3Comments

sandra2n picture sandra2n  路  3Comments