[wp-trac] [WordPress Trac] #31441: Consider automatically formatting certain patterns inside TinyMCE

WordPress Trac noreply at wordpress.org
Sun May 31 03:25:37 UTC 2015


#31441: Consider automatically formatting certain patterns inside TinyMCE
-------------------------+-------------------------
 Reporter:  iseulde      |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  4.3
Component:  TinyMCE      |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:  javascript
-------------------------+-------------------------

Comment (by azaozz):

 31441.3.patch looks good and works quite well in all browsers except IE8.
 Thinking we can just leave IE8 support out of this. 31441.4.patch is
 almost the same, just couple of small changes: prevents error in IE8 and
 adds only one setTimeout (outside the loop). Was thinking appending of
 <br> in the empty paragraph may be bad in IE < 11 but seems to be working.

 Funny how the tests fail in Chrome because the browser inserts inline
 styles and/or <span> with inline styles... Will need a workaround there.

 > ...if I hit enter twice to finish out a list, but then want to start
 another one of the same type without any text in between, it appends to
 the list above.

 Seems this is how `InsertUnorderedList` and `InsertOrderedList`
 contenteditable commands work. Happens with and without the shortcut. Can
 probably ask to be fixed upstream but not sure how complex it may be.

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


More information about the wp-trac mailing list