mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-23 15:21:36 +03:00
fix lint
This commit is contained in:
parent
16072240e0
commit
81345ffcba
@ -116,16 +116,6 @@ export const TextManage = forwardRef<ExtendedTextUtils, CreateTextView>(
|
|||||||
|
|
||||||
const properties = block.getProperties();
|
const properties = block.getProperties();
|
||||||
|
|
||||||
// const onTextViewSetSelection = (selection: Range | Point) => {
|
|
||||||
// console.log('selection: ', selection);
|
|
||||||
// if (selection instanceof Point) {
|
|
||||||
// //do some thing
|
|
||||||
// } else {
|
|
||||||
// // textRef.current.setSelection(selection);
|
|
||||||
// }
|
|
||||||
// };
|
|
||||||
|
|
||||||
// block = await editor.commands.blockCommands.createNextBlock(block.id,)
|
|
||||||
const onTextViewActive = useCallback(
|
const onTextViewActive = useCallback(
|
||||||
(point: CursorTypes) => {
|
(point: CursorTypes) => {
|
||||||
// TODO code to be optimized
|
// TODO code to be optimized
|
||||||
@ -207,8 +197,6 @@ export const TextManage = forwardRef<ExtendedTextUtils, CreateTextView>(
|
|||||||
);
|
);
|
||||||
|
|
||||||
useOnSelectActive(block.id, onTextViewActive);
|
useOnSelectActive(block.id, onTextViewActive);
|
||||||
// TODO undo dont reset selection
|
|
||||||
// useOnSelectSetSelection<'Range'>(block.id, onTextViewSetSelection);
|
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (textRef.current) {
|
if (textRef.current) {
|
||||||
|
Loading…
Reference in New Issue
Block a user