Skip to content

Commit

Permalink
Remove getformatflags method
Browse files Browse the repository at this point in the history
  • Loading branch information
citruscai committed Dec 5, 2024
1 parent 6b7d0c7 commit e381fae
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions packages/lexical-list/src/LexicalListItemNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {
import {
$applyNodeReplacement,
$createParagraphNode,
$getSelection,
$isElementNode,
$isParagraphNode,
$isRangeSelection,
Expand All @@ -40,7 +41,7 @@ import normalizeClassNames from 'shared/normalizeClassNames';

import {$createListNode, $isListNode} from './';
import {$handleIndent, $handleOutdent, mergeLists} from './formatList';
import {isNestedListNode, toggleTextFormatType} from './utils';
import {isNestedListNode} from './utils';

export type SerializedListItemNode = Spread<
{
Expand Down Expand Up @@ -89,12 +90,6 @@ export class ListItemNode extends ParagraphNode {
return (this.getTextFormat() & formatFlag) !== 0;
}

getFormatFlags(type: TextFormatType, alignWithFormat: null | number): number {
const self = this.getLatest();
const format = self.__textFormat;
return toggleTextFormatType(format, type, alignWithFormat);
}

createDOM(config: EditorConfig): HTMLElement {
const element = document.createElement('li');
const parent = this.getParent();
Expand Down

0 comments on commit e381fae

Please sign in to comment.