[wp-trac] [WordPress Trac] #20738: Improve Javascript Word Counting for TinyMCE
WordPress Trac
noreply at wordpress.org
Thu Jun 18 23:04:58 UTC 2015
#20738: Improve Javascript Word Counting for TinyMCE
-------------------------+------------------------
Reporter: westi | Owner: chriscct7
Type: enhancement | Status: accepted
Priority: normal | Milestone: 4.3
Component: I18N | Version: 3.4
Severity: normal | Resolution:
Keywords: close | Focuses:
-------------------------+------------------------
Changes (by azaozz):
* keywords: has-patch needs-unit-tests => close
Comment:
Looking at 20738.2.patch, it has three loops, tho of them nested and is
testing each individual character, twice. This seems far too slow in
longer posts. Also it would count any non-ASCII char, including emoji,
etc.
Also, seems the character count works differently for Japanese and
Chinese, one counts spaces, the other doesn't according to the comments
and patches on the original ticket:
https://core.trac.wordpress.org/ticket/8759#comment:15.
In that terms maybe it will be better to concentrate on #30966 and close
this one as "close enough" duplicate.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/20738#comment:17>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list