WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 5 years ago

#31629 closed defect (bug) (worksforme)

Editor not working due to JS error related to emojis

Reported by: eliorivero Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.2
Component: Editor Keywords: reporter-feedback emoji
Focuses: javascript, administration Cc:
PR Number:

Description

I thought this was some kind of hiccup due to a cached js or something, but I see it again.

Using 4.2-beta1-31760

Steps:

Add new post

Result:

Editor in Visual tab is not visible. Switching to Text works but clicking Visual again doesn't. Console says:

wp-tinymce.php?c=1&ver=4109-20150310:48 Uncaught TypeError: Cannot read property 'parseEmoji' of undefined

Browser:

Only tested in Chrome 41.0.2272.89 (64-bit) on OS X 10.10.2 Haven't tested others.

It was hard to figure out a line, so I set SCRIPT_DEBUG to true and hard reloaded. Bug was gone so I couldn't find the line. I turned off SCRIPT_DEBUG thinking it will appear again but bug never appeared again.

I tested this in a fresh install and it appears only once (per installation). After you reload it's gone.

Change History (3)

#1 @kraftbj
5 years ago

  • Keywords reporter-feedback added

Can you try a hard refresh? I saw this last night, but after refreshing, I couldn't duplicate. May be a caching problem that didn't get busted with the beta.

(Misread the line about the hard refresh attempted). It's a fun bug :)

Last edited 5 years ago by kraftbj (previous) (diff)

#2 @kraftbj
5 years ago

Unable to duplicate working off of core.svn and using grunt build to spin up a fresh build.

#3 @pento
5 years ago

  • Focuses javascript administration added
  • Keywords emoji added
  • Milestone Awaiting Review deleted
  • Resolution set to worksforme
  • Status changed from new to closed

We've since added extra sanity checking to the TinyMCE plugin. Please re-open if you see this happening again.

Note: See TracTickets for help on using tickets.