New

docx-editor 1.x has shipped. Vue support, i18n, agents. Read the migration guide →

API Referencev1.0.2

@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)

declare function addTabStop(position: number, alignment?: TabStopAlignment, leader?: TabLeader): Command;
declare function applyStyle(styleId: string, resolvedAttrs?: ResolvedStyleAttrs): Command;
declare function decreaseIndent(amount?: number): Command;
declare function getListInfo(state: EditorState): {
    numId: number;
    ilvl: number;
} | null;
declare function getParagraphAlignment(state: EditorState): ParagraphAlignment | null;
declare function getParagraphBidi(state: EditorState): boolean;
declare function getParagraphTabs(state: EditorState): TabStop[] | null;
declare function getStyleId(state: EditorState): string | null;
declare function increaseIndent(amount?: number): Command;
declare function insertSectionBreak(breakType: 'nextPage' | 'continuous' | 'oddPage' | 'evenPage'): Command;
declare function isInList(state: EditorState): boolean;
declare function removeTabStop(position: number): Command;

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;
declare function setIndentFirstLine(twips: number, hanging?: boolean): Command;
declare function setIndentLeft(twips: number): Command;
declare function setIndentRight(twips: number): Command;
declare function setLineSpacing(value: number, rule?: LineSpacingRule): Command;
declare function setSpaceAfter(twips: number): Command;
declare function setSpaceBefore(twips: number): Command;

Interfaces(1)

interface ResolvedStyleAttrs
MemberTypeSummary
paragraphFormatting?ParagraphFormatting
runFormatting?TextFormatting

Variables(17)

alignCenter: Command
alignJustify: Command
alignLeft: Command
alignRight: Command
clearStyle: Command
decreaseListLevel: Command
doubleSpacing: Command
generateTOC: Command
increaseListLevel: Command
oneAndHalfSpacing: Command
removeList: Command
removeSectionBreak: Command
setLtr: Command
setRtl: Command
singleSpacing: Command
toggleBulletList: Command
toggleNumberedList: Command