File tree 1 file changed +2
-1
lines changed
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ interface EditorProps extends EditorConfig {
24
24
autoFocus ?: boolean ;
25
25
placeholder ?: string ;
26
26
readOnly ?: boolean ;
27
+ className ?: string ;
27
28
config ?: any ;
28
29
plugins ?: string [ ] ;
29
30
// Configs
@@ -821,7 +822,7 @@ class Editor extends React.Component<EditorProps, EditorState> {
821
822
const editorId = id ? `${ id } _md` : undefined ;
822
823
const previewerId = id ? `${ id } _html` : undefined ;
823
824
return (
824
- < div id = { id } className = { `rc-md-editor ${ fullScreen ? 'full' : '' } ` } style = { this . props . style } onKeyDown = { this . handleKeyDown } onDrop = { this . handleDrop } >
825
+ < div id = { id } className = { `rc-md-editor ${ fullScreen ? 'full' : '' } ${ this . props . className ?? '' } ` } style = { this . props . style } onKeyDown = { this . handleKeyDown } onDrop = { this . handleDrop } >
825
826
< NavigationBar visible = { isShowMenu } left = { getPluginAt ( 'left' ) } right = { getPluginAt ( 'right' ) } />
826
827
< div className = "editor-container" >
827
828
{ showHideMenu && (
You can’t perform that action at this time.
0 commit comments