# EditIntent

`import { EditIntent } from "destack:input/binding";`

Edit intent kind aligned with web `beforeinput` input types.

```ds title="EditIntent"
export enum EditIntent {
    InsertText = 1,
    InsertReplacementText = 2,
    InsertLineBreak = 3,
    InsertParagraph = 4,
    InsertOrderedList = 5,
    InsertUnorderedList = 6,
    InsertHorizontalRule = 7,
    InsertLink = 8,
    InsertFromYank = 9,
    InsertFromDrop = 10,
    InsertFromPaste = 11,
    InsertFromPasteAsQuotation = 12,
    InsertTranspose = 13,
    InsertCompositionText = 14,
    DeleteWordBackward = 15,
    DeleteWordForward = 16,
    DeleteSoftLineBackward = 17,
    DeleteSoftLineForward = 18,
    DeleteEntireSoftLine = 19,
    DeleteHardLineBackward = 20,
    DeleteHardLineForward = 21,
    DeleteByDrag = 22,
    DeleteByCut = 23,
    DeleteContent = 24,
    DeleteContentBackward = 25,
    DeleteContentForward = 26,
    HistoryUndo = 27,
    HistoryRedo = 28,
    FormatBold = 29,
    FormatItalic = 30,
    FormatUnderline = 31,
    FormatStrikeThrough = 32,
    FormatSuperscript = 33,
    FormatSubscript = 34,
    FormatJustifyCenter = 35,
    FormatJustifyFull = 36,
    FormatJustifyLeft = 37,
    FormatJustifyRight = 38,
    FormatIndent = 39,
    FormatOutdent = 40,
    FormatRemove = 41,
    FormatSetBlockTextDirection = 42,
    FormatSetInlineTextDirection = 43,
    FormatBackColor = 44,
    FormatFontColor = 45,
    FormatFontName = 46,
}
```

[language/library/src/input/binding/text.ds:101:194](https://github.com/destack-sh/destack/blob/main/language/library/src/input/binding/text.ds#L101-L194)

## Variants

### `InsertText = 1`

`insertText`.

### `InsertReplacementText = 2`

`insertReplacementText`.

### `InsertLineBreak = 3`

`insertLineBreak`.

### `InsertParagraph = 4`

`insertParagraph`.

### `InsertOrderedList = 5`

`insertOrderedList`.

### `InsertUnorderedList = 6`

`insertUnorderedList`.

### `InsertHorizontalRule = 7`

`insertHorizontalRule`.

### `InsertLink = 8`

`insertLink`.

### `InsertFromYank = 9`

`insertFromYank`.

### `InsertFromDrop = 10`

`insertFromDrop`.

### `InsertFromPaste = 11`

`insertFromPaste`.

### `InsertFromPasteAsQuotation = 12`

`insertFromPasteAsQuotation`.

### `InsertTranspose = 13`

`insertTranspose`.

### `InsertCompositionText = 14`

`insertCompositionText`.

### `DeleteWordBackward = 15`

`deleteWordBackward`.

### `DeleteWordForward = 16`

`deleteWordForward`.

### `DeleteSoftLineBackward = 17`

`deleteSoftLineBackward`.

### `DeleteSoftLineForward = 18`

`deleteSoftLineForward`.

### `DeleteEntireSoftLine = 19`

`deleteEntireSoftLine`.

### `DeleteHardLineBackward = 20`

`deleteHardLineBackward`.

### `DeleteHardLineForward = 21`

`deleteHardLineForward`.

### `DeleteByDrag = 22`

`deleteByDrag`.

### `DeleteByCut = 23`

`deleteByCut`.

### `DeleteContent = 24`

`deleteContent`.

### `DeleteContentBackward = 25`

`deleteContentBackward`.

### `DeleteContentForward = 26`

`deleteContentForward`.

### `HistoryUndo = 27`

`historyUndo`.

### `HistoryRedo = 28`

`historyRedo`.

### `FormatBold = 29`

`formatBold`.

### `FormatItalic = 30`

`formatItalic`.

### `FormatUnderline = 31`

`formatUnderline`.

### `FormatStrikeThrough = 32`

`formatStrikeThrough`.

### `FormatSuperscript = 33`

`formatSuperscript`.

### `FormatSubscript = 34`

`formatSubscript`.

### `FormatJustifyCenter = 35`

`formatJustifyCenter`.

### `FormatJustifyFull = 36`

`formatJustifyFull`.

### `FormatJustifyLeft = 37`

`formatJustifyLeft`.

### `FormatJustifyRight = 38`

`formatJustifyRight`.

### `FormatIndent = 39`

`formatIndent`.

### `FormatOutdent = 40`

`formatOutdent`.

### `FormatRemove = 41`

`formatRemove`.

### `FormatSetBlockTextDirection = 42`

`formatSetBlockTextDirection`.

### `FormatSetInlineTextDirection = 43`

`formatSetInlineTextDirection`.

### `FormatBackColor = 44`

`formatBackColor`.

### `FormatFontColor = 45`

`formatFontColor`.

### `FormatFontName = 46`

`formatFontName`.
