[wp-trac] [WordPress Trac] #40882: Characters omitted when copying and pasting from Word

WordPress Trac noreply at wordpress.org
Sat Feb 7 17:48:57 UTC 2026


#40882: Characters omitted when copying and pasting from Word
--------------------------+------------------------------
 Reporter:  janthony636   |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  TinyMCE       |     Version:  4.7.5
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  javascript
--------------------------+------------------------------
Changes (by sabernhardt):

 * keywords:  reporter-feedback =>
 * focuses:   => javascript
 * component:  Editor => TinyMCE


Comment:

 The missing number can still happen with the Classic Editor. Like #63769,
 this is caused by the paragraph-to-list conversion in the TinyMCE Paste
 plugin. The sample document includes '84.5' inside an ordered list item,
 and pasting the document's contents removes '84.' and the preceding space.
 Within a regular paragraph, the number '84.5' remains intact.

 The main problem is where the script [https://github.com/WordPress
 /wordpress-
 develop/blob/6.9.1/src/js/_enqueues/vendor/tinymce/plugins/paste/plugin.js#L442-L445
 removes ignored nodes], including nodes that are not at the beginning of
 the paragraph.

 **Environment**
 - WordPress: 6.9.1
 - PHP: 8.2.30
 - Server: Apache
 - Database: mysqli (Server: 8.4.5-5 / Client: mysqlnd 8.2.30)
 - Browser: Chrome 144.0.0.0
 - OS: Windows 10
 - Microsoft Word 2016
 - Theme: Twenty Fifteen 4.1
 - MU Plugins: None activated
 - Plugins:
   * Classic Editor 1.6.7
   * Test Reports 1.2.1

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/40882#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list