@eigenpal/docx-editor-core/prosemirror/commands/paragraph

Paragraph Formatting Commands — thin re-exports from extension system

Alignment, line spacing, indentation, lists, paragraph styles. All implementations live in extensions/; this file re-exports for backward compatibility.

Functions (19)

addTabStopfunctionSource ↗

declare function addTabStop(position: number, alignment?: TabStopAlignment, leader?: TabLeader): Command;

applyStylefunctionSource ↗

declare function applyStyle(styleId: string, resolvedAttrs?: ResolvedStyleAttrs): Command;

decreaseIndentfunctionSource ↗

declare function decreaseIndent(amount?: number): Command;

getListInfofunctionSource ↗

declare function getListInfo(state: EditorState): {
    numId: number;
    ilvl: number;
} | null;

getParagraphAlignmentfunctionSource ↗

declare function getParagraphAlignment(state: EditorState): ParagraphAlignment | null;

getParagraphBidifunctionSource ↗

declare function getParagraphBidi(state: EditorState): boolean;

getParagraphTabsfunctionSource ↗

declare function getParagraphTabs(state: EditorState): TabStop[] | null;

getStyleIdfunctionSource ↗

declare function getStyleId(state: EditorState): string | null;

increaseIndentfunctionSource ↗

declare function increaseIndent(amount?: number): Command;

insertSectionBreakfunctionSource ↗

declare function insertSectionBreak(breakType: 'nextPage' | 'continuous' | 'oddPage' | 'evenPage'): Command;

isInListfunctionSource ↗

declare function isInList(state: EditorState): boolean;

removeTabStopfunctionSource ↗

declare function removeTabStop(position: number): Command;

setAlignmentfunctionSource ↗

Paragraph Formatting Commands — thin re-exports from extension system

Alignment, line spacing, indentation, lists, paragraph styles. All implementations live in extensions/; this file re-exports for backward compatibility.

declare function setAlignment(alignment: ParagraphAlignment): Command;

setIndentFirstLinefunctionSource ↗

declare function setIndentFirstLine(twips: number, hanging?: boolean): Command;

setIndentLeftfunctionSource ↗

declare function setIndentLeft(twips: number): Command;

setIndentRightfunctionSource ↗

declare function setIndentRight(twips: number): Command;

setLineSpacingfunctionSource ↗

declare function setLineSpacing(value: number, rule?: LineSpacingRule): Command;

setSpaceAfterfunctionSource ↗

declare function setSpaceAfter(twips: number): Command;

setSpaceBeforefunctionSource ↗

declare function setSpaceBefore(twips: number): Command;

Interfaces (1)

ResolvedStyleAttrsinterfaceSource ↗

interface ResolvedStyleAttrs
MemberTypeSummary
numbering?NumberingMap | nullNumbering definitions from the document package. When the applied style carries a `w:numPr`, these resolve the numbering level into the list marker attrs (template, per-level formats, counter key) so the painter renders the style's numbering — e.g. "[Claim 1]" — instead of falling back to a plain decimal marker.
paragraphFormatting?ParagraphFormatting
runFormatting?TextFormatting

Variables (17)

alignCenterconstSource ↗

alignCenter: Command

alignJustifyconstSource ↗

alignJustify: Command

alignLeftconstSource ↗

alignLeft: Command

alignRightconstSource ↗

alignRight: Command

clearStyleconstSource ↗

clearStyle: Command

decreaseListLevelconstSource ↗

decreaseListLevel: Command

doubleSpacingconstSource ↗

doubleSpacing: Command

generateTOCconstSource ↗

generateTOC: Command

increaseListLevelconstSource ↗

increaseListLevel: Command

oneAndHalfSpacingconstSource ↗

oneAndHalfSpacing: Command

removeListconstSource ↗

removeList: Command

removeSectionBreakconstSource ↗

removeSectionBreak: Command

setLtrconstSource ↗

setLtr: Command

setRtlconstSource ↗

setRtl: Command

singleSpacingconstSource ↗

singleSpacing: Command

toggleBulletListconstSource ↗

toggleBulletList: Command

toggleNumberedListconstSource ↗

toggleNumberedList: Command

On this page