Skip to content

Commit

Permalink
Revert "Verbum: disable block editor (#41734)"
Browse files Browse the repository at this point in the history
This reverts commit 008ec02.
  • Loading branch information
spsiddarthan committed Feb 12, 2025
1 parent 128db05 commit 602d604
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { forwardRef, type TargetedEvent } from 'preact/compat';
import { useContext, useEffect, useState } from 'preact/hooks';
import { translate } from '../i18n';
import { VerbumSignals } from '../state';
import { isFastConnection } from '../utils';
import { EditorPlaceholder } from './editor-placeholder';

type CommentInputFieldProps = {
Expand Down Expand Up @@ -40,10 +41,9 @@ export const CommentInputField = forwardRef(
const [ isGBEditorEnabled, setIsGBEditorEnabled ] = useState( false );

useEffect( () => {
// TODO: Fix Gutenberg editor not loading for logged out users.
// setTimeout( () => {
// setIsGBEditorEnabled( VerbumComments.enableBlocks && isFastConnection() );
// } );
setTimeout( () => {
setIsGBEditorEnabled( VerbumComments.enableBlocks && isFastConnection() );
} );
}, [] );

/**
Expand Down

0 comments on commit 602d604

Please sign in to comment.