@@ -0,0 +1,6 @@
|
|||||||
|
import { style } from '@vanilla-extract/css';
|
||||||
|
|
||||||
|
export const richTextInput = style({
|
||||||
|
width: '100%',
|
||||||
|
height: '100%',
|
||||||
|
});
|
||||||
@@ -13,6 +13,7 @@ import type * as Y from 'yjs';
|
|||||||
|
|
||||||
import type { DatabaseCellRendererProps } from '../../../types';
|
import type { DatabaseCellRendererProps } from '../../../types';
|
||||||
import { useBlockStdScope } from '../../../utils';
|
import { useBlockStdScope } from '../../../utils';
|
||||||
|
import * as styles from './rich-text.css';
|
||||||
|
|
||||||
// todo(@pengx17): handle markdown/keyboard shortcuts
|
// todo(@pengx17): handle markdown/keyboard shortcuts
|
||||||
const renderRichText = ({
|
const renderRichText = ({
|
||||||
@@ -67,7 +68,7 @@ const RichTextInput = ({
|
|||||||
}
|
}
|
||||||
return () => {};
|
return () => {};
|
||||||
}, [dataSource.doc, onChange, std, text]);
|
}, [dataSource.doc, onChange, std, text]);
|
||||||
return <div ref={ref} style={style} />;
|
return <div className={styles.richTextInput} ref={ref} style={style} />;
|
||||||
};
|
};
|
||||||
|
|
||||||
const DesktopRichTextCell = ({
|
const DesktopRichTextCell = ({
|
||||||
|
|||||||
Reference in New Issue
Block a user