-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Show/hide Editor not working sometimes #4828
Comments
Show/hide editor worked after i sign out admin panel. |
What is your browser name/version and OS? |
No update was received from the author. |
Hai, Sorry for too late reply. I have used Firefox 43.0 in ubuntu 14.0. |
I have the same error, it seems really 50/50. When it doesnt show the show/hide button doesnt work (and no js errors), but when the editor shows the button does work. First I thought it was a browser issue but switching didnt seem to help. It happens not only with CMS, but with adding/editing products as well. Using Chrome and Safari latest version, PHP 7.0.7, Magento in dev mode and cache off. |
We are having the same problem; We think it has something to do with the order in which the js are executed. Because if you refresh you page it's indeed 50/50 chance it will work. *Edit: it's the editor_plugin.js that's not loaded sometimes |
Has anyone come up with a solution for this? I am having exactly the same problem. |
Looks like it still issue. Reopened. @koenner01, @luxwan13 which version of Magento do you use? |
@koenner01 is on holiday, so I'll answer in his name: we use Magento CE 2.1.0 |
@hostep, thank you for the fast answer. Created internal ticket MAGETWO-57911 to investigate this issue. |
@shiftedreality |
In case this helps someone. This problem mostly happens when you have enabled JS Bundling. So I'm pretty sure this issue is because a dependency is incorrectly defined (using requirejs?) and sometimes the correct js files are loaded before other js files and sometimes not which in this case causes this issue (not properly debugged, because it's a hell to debug js when bundling is enabled). As a temporary workaround, I was trying to disable JS Bundling only in the adminhtml and keep it enabled in the frontend, but unfortunately this doesn't work at all. I've opened a new issue for this new bug... And I'm also linking some related/duplicate issues here, since they weren't linked already: |
As an investigation shows, the problem is inside 3d party library tinymce, which we shouldn't modify. TinyMCE uses own Event manager and when we call tinymce.init() tinymce sometimes doesn't trigger ‘init’ event itself, so initialise doesn’t execute. |
@hostep @luxwan13 @shiftedreality @koenner01 |
@tkacheva: can you elaborate a little bit on your comment? Because currently this issue is preventing us from putting shops into production since non-technical shopowners have a really hard time entering html syntax. It would be very much appreciated if this issue could get some higher priority. |
[Folks] Bugs - MAGETWO-58334 [Github] Free shipping is not applied if cart price rule match #6584 - MAGETWO-57278 For Dutch locale, ZIP in checkout is already giving out a "validation failed" error at page load - MAGETWO-57675 [GITHUB] WYSIWYG editor does not show. #6222 #4828 #6815 - MAGETWO-56836 [FT] Update wishlist button doesn't receive the click in AddProductsToCartFromCustomerWishlistOnFrontendTest - MAGETWO-54412 [MERCHANT] Integrity Constraint Violation when creating orders #4580 - MAGETWO-58730 [Github] Incorrect province code sent on Checkout to UPS #6564
Fix is delivered to the develop branch. @shiftedreality can you close the issue? |
@mailtomayaz that's work |
As a quick workaround I also discovered that after the page has loaded one simple f5 on that page does the trick to load the WYSIWYC editor. |
This is definitely still an issue that majorly impacts usability, when can we expect a fix here? |
Still not working on 2.1.5 :( |
I am also having this problem on 2.1.4. |
Confirming that @mailtomayaz's comment seems to work. |
…ow. magento#6222 magento#4828 magento#6815 (cherry picked from commit 3524943)
Unfortunately the fix suggested by magento-team doesnt' work... |
still doesn't work for us on 2.1.6 |
The workaround posted by @mailtomayaz worked for us on 2.1.7. We still require a definitive fix for this! |
Internal ticket to track issue progress: MAGETWO-68903 |
We get the same issue after upgrading to 2.1.9! |
@OnePhilT your browser tries to load minified tiny_mce. It shouldn't be minified. Your have to use extension which overrides dev/js/minify_exclude setting. In my case It was MSP_ReCaptcha. |
Thanks, @maqlec. I realised about the JavaScript minification issue when I subsequently followed other threads. I think this issue wasn't resolved in version 2.2.2, although I managed a workaround to avoid minifying TinyMCE JavaScript. |
As I saw in another thread, it has fixed in 2.3-develop branch |
@magento-engcom-team & @shiftedreality, after reviewing this thread it appears no action has occurred for 2.2.x versions. I'm on 2.2.4 the latest iteration and it's still an issue. These are the types of issues that give Magento a bad reputation. Is there a backported patch for 2.2.4? Since I'll likely not get a direct answer, @OnePhilT what did you do to solve the issue? I see solutions from modifying JS to wait for DOM loaded, removing it from minification, to enabling WYSIWYG by default, deleting all generated files and starting over. I mean if it can be fixed without any code changes that would be great, but any suggestions are welcome! |
I have same issue on magento 2.2.4 as @duffner said. after upgrading from 2.2.3 (where editor works) on 2 shops to magento 2.2.4 editor is broken if js is bundeled |
@matin73: please try updating the Klarna modules to the latest version using composer, or just disable them if you don't use those, it should fix the problem in 2.2.4 (btw: it was caused by a different bug in 2.2.4, not by the one which was discussed in this thread). |
Is this issue resolved? I have a 2.1.5 installation with is problem. |
@kanenas: it was resolved, but not sure if that happened before 2.1.5 was released. However, I would strongly advise you to upgrade to a newer Magento version, version 2.1.5 is really old and no longer supported. |
Hai,
I have faced this problem when i edit content in CMS -> Pages.Show/hide editor doesn't work sometimes.Eventhough i have removed all content and save it doesn't work.I can't see any js error in console. So please let me know how to solve this.
The text was updated successfully, but these errors were encountered: