visual editor wordpress not working
-
Hi
after update to WP 4.2, my visual editor wordpress not working..Help!
-
Which part is not working? Are you able to see the Visual Editor at all?
Repaired, thank you @jan Dembowski
But a new problem in Tags, when i add new tag i get: rundefinedoundefinedsundefinedeundefineds
That sounds like a javascript conflict. Try these temporary steps just to see.
1. Switch to the Twenty Fifteen theme.
2. Deactivate all of your plugins, no exceptions.
3. Clear your browser’s cache and cookies.
4. Log in again, visit the visual editor and try to use it to save a draft post.Do you still get the errors after that?
Do you still get the errors after that?
Yes.
The same errors? CAn you post a link to your site with all plugins off and Twenty Fifteen theme active?
My Plugins
All In One SEO Pack
Contact Form 7
EWWW Image Optimizer
Google XML Sitemaps
Popular Widget
WP Post NavigationPreviously, you turn off all Plugins, I’m used Twenty Fifteen theme.
There is no solution yet.WITH (Ctrl+Shift+J)
Consider using ‘dppx’ units, as in CSS ‘dpi’ means dots-per-CSS-inch, not dots-per-physical-inch, so does not correspond to the actual ‘dpi’ of a screen. In media query expression: print, (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi)
post-new.php:285Consider using ‘dppx’ units, as in CSS ‘dpi’ means dots-per-CSS-inch, not dots-per-physical-inch, so does not correspond to the actual ‘dpi’ of a screen. In media query expression: print, not all, (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi)
tinymce.min.js:9 Consider using ‘dppx’ units, as in CSS ‘dpi’ means dots-per-CSS-inch, not dots-per-physical-inch, so does not correspond to the actual ‘dpi’ of a screen. In media query expression: print, not all, (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi)
5/wp-includes/js/tinymce/plugins/wpview/plugin.min.js?wp-mce-4109-20150406:1 Uncaught TypeError: wp.mce.views.toViews is not a functionXHR finished loading: POST “http://mysitename.com/wp-admin/admin-ajax.php”.
Likewise similar issues here.
Uncaught TypeError: wp.mce.views.toViews is not a function
If I disable javascript concatenation, then the link button on the editor and tag system don’t work. Selecting a tag then returns undefined after every letter of the tag.
Latest version of WordPress. Just trying to debug further now.
I was able to fix the issue on my side after my client complained to me he cannot use the visual editor to publish posts. His website was getting the error:
“Uncaught TypeError: wp.mce.views.toViews is not a function”,
viewed from the Chrome Developer Tools.What I did was I deactivated the first few plugins, then load the post editor and see if it will load the Visual Editor successfully. When it worked I reactivated the plugins to isolate which one is causing the problem. In the end, I was able to reactivate all the plugins with no issues. It might have been a plugin or update issue that was causing the problem.
If that doesn’t work for you, re-install your latest WP core.
Hey! I just had the same problem with WP 4.2.2. I figured out that, the
toViewsfunction does not exist in that, so I checked for similar functions. In the wp-includes/js/plugins/wordpress/wpviews/plugin.js | plugin.min.js you must set theevent.content = wp.mce.views.toViews(event.content);toevent.content = wp.mce.views.setMarkers(event.content);.dude92
THANK YOU SO MUCH! I have been looking for HOURS trying to figure out this issue! My /plugin.js was fine, but the plugin.min.js has toViews, swapped that with SetMarkers and I was ready to rock. Thanks!
The topic ‘visual editor wordpress not working’ is closed to new replies.