File tree Expand file tree Collapse file tree
packages/plate/components/editor Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ export function PlateEditor(props: {
2222 blocksApi ?: any ;
2323 intl ?: any ;
2424 children ?: ReactNode ;
25+ className ?: string ;
2526 onChange : ( options : {
2627 editor : TPlateEditor < Value , AnyPluginConfig > ;
2728 value : TElement [ ] ;
@@ -45,7 +46,11 @@ export function PlateEditor(props: {
4546 { /* Provides editor context */ }
4647 < EditorContainer className = "" >
4748 { /* Styles the editor area */ }
48- < Editor variant = "block" placeholder = "Type text..." />
49+ < Editor
50+ className = { props . className }
51+ variant = "block"
52+ placeholder = "Type text..."
53+ />
4954 </ EditorContainer >
5055 { props . children }
5156 </ Plate >
@@ -84,6 +89,7 @@ export function PlateRenderer(
8489 < EditorView
8590 { ...rest }
8691 editor = { editor as unknown as SlateEditor }
92+ className = { props . className }
8793 variant = "none"
8894 />
8995 </ Plate >
You can’t perform that action at this time.
0 commit comments