mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-23 00:11:33 +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 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(
|
||||
(point: CursorTypes) => {
|
||||
// TODO code to be optimized
|
||||
@ -207,8 +197,6 @@ export const TextManage = forwardRef<ExtendedTextUtils, CreateTextView>(
|
||||
);
|
||||
|
||||
useOnSelectActive(block.id, onTextViewActive);
|
||||
// TODO undo dont reset selection
|
||||
// useOnSelectSetSelection<'Range'>(block.id, onTextViewSetSelection);
|
||||
|
||||
useEffect(() => {
|
||||
if (textRef.current) {
|
||||
|
Loading…
Reference in New Issue
Block a user