[wp-trac] [WordPress Trac] #63769: Long time bug in classic editor
WordPress Trac
noreply at wordpress.org
Thu Jul 31 07:53:46 UTC 2025
#63769: Long time bug in classic editor
--------------------------+------------------------------
Reporter: neotrope | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: TinyMCE | Version: 6.8.2
Severity: normal | Resolution:
Keywords: needs-patch | Focuses: javascript
--------------------------+------------------------------
Changes (by sabernhardt):
* focuses: => javascript
* component: Editor => TinyMCE
Comment:
This could go back as early as WordPress 4.0, when
[https://core.trac.wordpress.org/changeset/29458/trunk/src/wp-
includes/js/tinymce/plugins/paste/plugin.js r29458] updated to TinyMCE
4.1.3. I reproduced it in WP 6.8.2 (with Classic Editor 1.6.7) and in WP
4.8.25.
The [https://github.com/WordPress/wordpress-
develop/blob/6.8.2/src/js/_enqueues/vendor/tinymce/plugins/paste/plugin.js#L356-L357
regular expressions] for converting pasted content to an ordered list can
match any of the examples below if they are at the beginning of a
paragraph copied from a Word document. (The pattern is one English letter,
or two in the same letter case, followed by either a dot or closing
parenthesis and then a space.)
{{{
ST. LOUIS, MO
FT. LAUDERDALE, FL
A. A. Milne
e. e. cummings
P. Sherman
S. Morgenstern
ex. 4
}}}
Later in TinyMCE development,
[https://github.com/tinymce/tinymce/pull/6784 TINY-7368] fixed the Roman
numeral detection before [https://github.com/tinymce/tinymce/pull/7371
TINY-7493] removed `WordFilter.js` entirely.
Changes to the WordPress version of TinyMCE should be limited, but the
`[a-z]` and `[A-Z]` matches might be inappropriate more often than they
are helpful.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63769#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list