Opened 7 years ago
Closed 5 years ago
#42106 closed defect (bug) (reported-upstream)
Academic titles changes when copy-paste from Word
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 4.8.2 |
Component: | Editor | Keywords: | |
Focuses: | Cc: |
Description
Hey WordPress team. I found a bug!
When I copy numbered list or bullet list from Word with academic titles such as "prof. dr hab. inż." (in Polish) WordPress visual editor change name "prof." on the beginning.
For example:
Członkowie Rady Naukowej KGW:
- dr hab. inż. Helenka Białek
- prof. dr hab. inż. Grażyna Nowak
- prof. dr hab. inż. Żaneta Kowalczyk
- dr hab. inż. Jowita Żarko
- prof. dr hab. inż. Janina Roszpunek
changes to:
Członkowie Rady Naukowej KGW:
- dr hab. inż. Helenka Białek
- dr hab. inż. Grażyna Nowak
- dr hab. inż. Żaneta Kowalczyk
- dr hab. inż. Jowita Żarko
- dr hab. inż. Janina Roszpunek
When there is "prof" without dot at the end - everything is all right.
This bug only occurs when copying a numbered or bulleted list.
Attachments (1)
Change History (3)
#1
@
7 years ago
- Keywords dev-feedback added
Hey @create24, thanks for posting your first ticket!
I can confirm this bug. When pasting that list from Word into a post, it removes the "prof." from the beginning of list items starting with "prof.". It only does this when pasting from Word, not plain text.
It appears to be a TinyMCE bug in their Paste plugin. WordPress core currently uses TinyMCE version 4.6.7, however, even the later versions still do the same thing. I tried pasting your example list into editors using different versions of TinyMCE here:
or here:
https://codepen.io/tinymce/pen/YydQrY
The demo editor on their homepage doesn't produce the same results, but I believe its also running one of their paid plugins (PowerPaste) though: https://www.tinymce.com/. The demo editor on the PowerPaste page doesn't behave the same way as the free demo editors: https://store.ephox.com/products/powerpaste/.
I've reported the bug with TinyMCE. Hopefully, they will fix it and the version with the fix will get merged into core.
Example of list