Improve design of the rich text editor (#9533)

New design for rich text composer
This commit is contained in:
Florian Duros
2022-11-04 16:36:50 +01:00
committed by GitHub
parent 9101b42de8
commit 5ca9accce2
31 changed files with 668 additions and 270 deletions

View File

@@ -28,7 +28,7 @@ export function useWysiwygEditActionHandler(
composerElement: RefObject<HTMLElement>,
) {
const roomContext = useRoomContext();
const timeoutId = useRef<number>();
const timeoutId = useRef<number | null>(null);
const handler = useCallback((payload: ActionPayload) => {
// don't let the user into the composer if it is disabled - all of these branches lead