[wp-trac] [WordPress Trac] #32079: TinyMCE Paste from Word list item issue

WordPress Trac noreply at wordpress.org
Thu Apr 23 17:09:04 UTC 2015


#32079: TinyMCE Paste from Word list item issue
--------------------------+-----------------------------
 Reporter:  ew_holmes     |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  TinyMCE       |    Version:  4.1.2
 Severity:  normal        |   Keywords:
  Focuses:  javascript    |
--------------------------+-----------------------------
 Hi all,

 I've discovered a bug, but I'm unsure whether it is actually a WordPress
 issue or a TinyMCE issue.

 When copying + pasting a list from word, list item text is ignored when
 the contents are only a single word with a period.

 {{{
 <ul>
     <li>This works.</li>
     <li>Nope.</li>
 </ul>
 }}}
 My interpretation of this issue is that WordPress (or perhaps TinyMCE
 itself) is attempting to remove "duplicate list indicators". Something
 along the lines of this.

 {{{
 <ul>
     <li>a. a list item</li>
     <li>b. another list item</li>
 </ul>
 }}}

 In this example, it makes sense to remove `a.` and `b.`, but perhaps a
 more explicit regular expression pattern is required to ensure we are not
 removing words. Things like `xi.` and `iv.` etc. should also be caught, as
 they are roman numerals.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/32079>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list