Opened 5 years ago
Closed 5 years ago
#6967 closed defect (bug) (fixed)
TinyMCE wpWordCount detection doesn't work
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | 2.6 |
| Component: | TinyMCE | Version: | 2.6 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
The logic to detect if the wpWordCount JavaScript module exists does not work properly. If the module is missing, the script aborts. Adding a "typeof" solved the problem. Patch attached.
I ran into this problem because I am using WordPress from Debian unstable, and TinyMCE is currently broken. I was able to fix it by copying wp-includes/js/tinymce from SVN trunk and deleting wp-content/uploads/js_cache, then making the change in the attached patch.
Thanks,
Dave
Attachments (1)
Change History (6)
Yes, "typeof" was there in an earlier patch:
http://trac.wordpress.org/attachment/ticket/4807/word-count2.patch
but is missing from the latest one. Thanks for pointing that out.

Patch: wpWordCount detection fix