#31993 closed defect (bug) (duplicate)
TinyMCE Visual Mode not working
Reported by: | Lokimo | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 4.2 |
Component: | TinyMCE | Keywords: | |
Focuses: | Cc: |
Description
After updating to 4.2-RC1-32138 i can no longer use the Visual Mode of tinyMCE Editor (with firefox 37 and Chrome 41)
When i pase in Text in the Visual mode and switch to Text mode the Text dissapears.
Also when i save it directly no content is saved. I get an error
TypeError: a.ownerDocument.defaultView.getComputedStyle(...) is nul .../wp-includes/js/tinymce/wp-tinymce.php?c=1&ver=4109-20150406Line 5
Change History (6)
Note: See
TracTickets for help on using
tickets.
Cannot reproduce. The weird thing is:
ownerDocument.defaultView
is used only in one place in TinyMCE: in theDomQuery.css()
(similar to jQuery'scss()
) https://github.com/tinymce/tinymce/blob/master/js/tinymce/classes/dom/DomQuery.js#L526However the code there is wrapped in a try{} catch(){}, not sure how it triggers that error. And since this is in the compressed wp-tinymce.js.gz file, don't think it can be "corrupted file" either...
@Lokimo can you try adding
SCRIPT_DEBUG
to wp-confing.php and see if that fixes it or at least the error changes: https://codex.wordpress.org/Debugging_in_WordPress