-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f37e9de
commit a13c33c
Showing
11 changed files
with
112 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
packages/roosterjs-content-model-plugins/lib/autoFormat/interface/AutoFormatOptions.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import type { AutoLinkOptions } from './AutoLinkOptions'; | ||
|
||
/** | ||
* Options to customize the Content Model Auto Format Plugin | ||
*/ | ||
export interface AutoFormatOptions extends AutoLinkOptions { | ||
/** | ||
* When true, after type *, ->, -, --, => , —, > and space key a type of bullet list will be triggered. | ||
*/ | ||
autoBullet?: boolean; | ||
|
||
/** | ||
* When true, after type 1, A, a, i, I followed by ., ), - or between () and space key a type of numbering list will be triggered. | ||
*/ | ||
autoNumbering?: boolean; | ||
|
||
/** | ||
* Transform -- into hyphen, if typed between two words | ||
*/ | ||
autoHyphen?: boolean; | ||
|
||
/** | ||
* Transform 1/2, 1/4, 3/4 into fraction character | ||
*/ | ||
autoFraction?: boolean; | ||
|
||
/** | ||
* Transform ordinal numbers into superscript | ||
*/ | ||
autoOrdinals?: boolean; | ||
} |
24 changes: 24 additions & 0 deletions
24
packages/roosterjs-content-model-plugins/lib/autoFormat/interface/AutoLinkOptions.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/** | ||
* Options to customize the Auto link options in Auto Format Plugin | ||
*/ | ||
export interface AutoLinkOptions { | ||
/** | ||
* When press backspace before a link, remove the hyperlink | ||
*/ | ||
autoUnlink?: boolean; | ||
|
||
/** | ||
* When paste or type content with a link, create hyperlink for the link | ||
*/ | ||
autoLink?: boolean; | ||
|
||
/** | ||
* When paste content or type content with telephone, create hyperlink for the telephone number | ||
*/ | ||
autoTel?: boolean; | ||
|
||
/** | ||
* When paste or type a content with mailto, create hyperlink for the content | ||
*/ | ||
autoMailto?: boolean; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.