[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 04:48:46 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  |     Focuses:  administration
-----------------------------+------------------------------

Comment (by ryotsun):

 Replying to [ticket:44870 miyauchi]:
 > If we entered a Japanese character, the text will be cleared.
 > We can see this problem on Custom HTML widget and editor screens for
 plugin and themes,

 It seems depending on editor settings of codemirror below.\\
 https://core.trac.wordpress.org/browser/trunk/src/wp-includes/general-
 template.php#L3207

 `contenteditable` should be `textarea` to fix this issue.

 {{{#!php
         $settings = array(
                 'codemirror' => array(
                         ...
                         'inputStyle'       => 'textarea',
                         ...
                 ),
                 ...
         );
 }}}

 But I need some assistance because I'm not sure expected impact area.

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

 {{{
 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.
 }}}



 ==  related issue
 it may the related issue..?\\
 https://github.com/codemirror/CodeMirror/issues/3137

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


More information about the wp-trac mailing list