-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #92 from editor-js/ol-couters-customization
feat(properties): implement counterType config property
- Loading branch information
Showing
5 changed files
with
106 additions
and
13 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
export type OlCounterType = 'numeric' | 'upper-roman' | 'lower-roman' | 'upper-alpha' | 'lower-alpha'; | ||
|
||
/** | ||
* Enum that represents all of the supported styles of the counters for ordered list | ||
*/ | ||
export const OlCounterTypesMap = new Map<string, string>([ | ||
/** | ||
* Value that represents default arabic numbers for counters | ||
*/ | ||
['Numeric', 'numeric'], | ||
|
||
/** | ||
* Value that represents lower roman numbers for counteres | ||
*/ | ||
['Lower Roman', 'lower-roman'], | ||
|
||
/** | ||
* Value that represents upper roman numbers for counters | ||
*/ | ||
['Upper Roman', 'upper-roman'], | ||
|
||
/** | ||
* Value that represents lower alpha characters for counters | ||
*/ | ||
['Lower Alpha', 'lower-alpha'], | ||
|
||
/** | ||
* Value that represents upper alpha characters for counters | ||
*/ | ||
['Upper Alpha', 'upper-alpha'], | ||
]); |