[wp-trac] [WordPress Trac] #44870: The text will be cleared on codemirror with the Japanese Kanji input

WordPress Trac noreply at wordpress.org
Sun Sep 2 19:47:00 UTC 2018


#44870: The text will be cleared on codemirror with the Japanese Kanji input
---------------------------------------+------------------------------
 Reporter:  miyauchi                   |       Owner:  (none)
     Type:  defect (bug)               |      Status:  new
 Priority:  normal                     |   Milestone:  Awaiting Review
Component:  I18N                       |     Version:  4.9.8
 Severity:  normal                     |  Resolution:
 Keywords:  has-screenshots has-patch  |     Focuses:  administration
---------------------------------------+------------------------------

Comment (by miyauchi):

 @ryotsun

 I tried your patch and it looks good to me.

 But I found following in the codemirror documentation:

 > inputStyle: string
 > Selects the way CodeMirror handles input and focus. The core library
 defines the "textarea" and "contenteditable" input models. On mobile
 browsers, the default is "contenteditable". On desktop browsers, the
 default is "textarea". Support for IME and screen readers is better in the
 "contenteditable" model. The intention is to make it the default on modern
 desktop browsers in the future.

 https://codemirror.net/doc/manual.html

 I am not sure but I think it should be same behavior with the codemirror
 default.
 So, it shoud be `contenteditable` on mobile and it should be `textarea` on
 desktop.(?)

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


More information about the wp-trac mailing list