浏览代码

#WOA-2358|Resolved|Focus title during initialization

Yevhen Pavliuk 8 年前
父节点
当前提交
9396c0fe14
共有 2 个文件被更改,包括 3 次插入0 次删除
  1. 1
    0
      src/RichTextEditor.js
  2. 2
    0
      src/editor.html

+ 1
- 0
src/RichTextEditor.js 查看文件

225
           style={{flex: 1}}
225
           style={{flex: 1}}
226
           {...this.props}
226
           {...this.props}
227
           hideKeyboardAccessoryView={true}
227
           hideKeyboardAccessoryView={true}
228
+          keyboardDisplayRequiresUserAction={false}
228
           ref={(r) => {this.webviewBridge = r}}
229
           ref={(r) => {this.webviewBridge = r}}
229
           onBridgeMessage={(message) => this.onBridgeMessage(message)}
230
           onBridgeMessage={(message) => this.onBridgeMessage(message)}
230
           injectedJavaScript={injectScript}
231
           injectedJavaScript={injectScript}

+ 2
- 0
src/editor.html 查看文件

883
 				whenPastingInsertAsPlainText('zss_editor_title');
883
 				whenPastingInsertAsPlainText('zss_editor_title');
884
 				whenPastingInsertAsPlainText('zss_editor_content');
884
 				whenPastingInsertAsPlainText('zss_editor_content');
885
 
885
 
886
+				zss_editor.focusTitle();
887
+
886
 				setTimeout(function() {
888
 				setTimeout(function() {
887
 					WebViewBridge.send(JSON.stringify({type: 'ZSS_INITIALIZED'}))
889
 					WebViewBridge.send(JSON.stringify({type: 'ZSS_INITIALIZED'}))
888
 				}, 20);
890
 				}, 20);