scripts/core/editor3/helpers/handleBeforeInputHighlights.ts
Function handleBeforeInputHighlights
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function handleBeforeInputHighlights(
onChange,
chars: string,
editorState: EditorState,
): DraftHandleValue {
Function getRelevantCharactersForCollapsedSelection
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getRelevantCharactersForCollapsedSelection(
editorState: EditorState,
collapsedSelection: SelectionState,
): List<CharacterMetadata> {
let characters = List<CharacterMetadata>();