File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ export interface IProps {
19
19
value : string ;
20
20
init : EditorOptions & Partial < Record < 'selector' | 'target' | 'readonly' | 'license_key' , undefined > > ;
21
21
tagName : string ;
22
+ tabIndex : number ;
22
23
cloudChannel : Version ;
23
24
plugins : NonNullable < EditorOptions [ 'plugins' ] > ;
24
25
toolbar : NonNullable < EditorOptions [ 'toolbar' ] > ;
@@ -180,7 +181,8 @@ export class Editor extends React.Component<IAllProps> {
180
181
181
182
return React . createElement ( tagName , {
182
183
ref : this . elementRef ,
183
- id : this . id
184
+ id : this . id ,
185
+ tabIndex : this . props . tabIndex
184
186
} ) ;
185
187
}
186
188
@@ -189,7 +191,8 @@ export class Editor extends React.Component<IAllProps> {
189
191
ref : this . elementRef ,
190
192
style : { visibility : 'hidden' } ,
191
193
name : this . props . textareaName ,
192
- id : this . id
194
+ id : this . id ,
195
+ tabIndex : this . props . tabIndex
193
196
} ) ;
194
197
}
195
198
Original file line number Diff line number Diff line change @@ -96,6 +96,7 @@ export const EditorPropTypes: IEditorPropTypes = {
96
96
onEditorChange : PropTypes . func ,
97
97
value : PropTypes . string ,
98
98
tagName : PropTypes . string ,
99
+ tabIndex : PropTypes . number ,
99
100
cloudChannel : PropTypes . string ,
100
101
plugins : PropTypes . oneOfType ( [ PropTypes . string , PropTypes . array ] ) ,
101
102
toolbar : PropTypes . oneOfType ( [ PropTypes . string , PropTypes . array ] ) ,
You can’t perform that action at this time.
0 commit comments