Adds a 60px area to the left and right of editable area (#5197
* Adds a 60px area to the left and right of editable area that allows clicking to focus paragraphs * tsc
This commit is contained in:
@@ -7,6 +7,7 @@ export type Props = {
|
||||
rtl: boolean;
|
||||
readOnly?: boolean;
|
||||
readOnlyWriteCheckboxes?: boolean;
|
||||
editorStyle?: React.CSSProperties;
|
||||
grow?: boolean;
|
||||
theme: DefaultTheme;
|
||||
};
|
||||
@@ -143,6 +144,8 @@ width: 100%;
|
||||
-webkit-font-variant-ligatures: none;
|
||||
font-variant-ligatures: none;
|
||||
font-feature-settings: "liga" 0; /* the above doesn't seem to work in Edge */
|
||||
padding: ${props.editorStyle?.padding ?? "initial"};
|
||||
margin: ${props.editorStyle?.margin ?? "initial"};
|
||||
|
||||
& > .ProseMirror-yjs-cursor {
|
||||
display: none;
|
||||
|
||||
Reference in New Issue
Block a user