Helpers/normalize
NUMBER_FIELDS_REG
Const NUMBER_FIELDS_REG: RegExp
Defined in
src/core/helpers/normalize/normalize-css-value.ts#16
normalizeColor
normalizeColor(colorInput): string | false
Convert rgba and short HEX color to Full text color. #fff to #FFFFFF
Parameters
| Name | Type | Description |
|---|---|---|
colorInput |
string |
string like rgba(red, green, blue, alpha) or rgb(red, green, blue) or #fff or #ffffff |
Returns
string | false
HEX color, false - for transparent color
Defined in
src/core/helpers/normalize/normalize-color.ts#20
normalizeCssNumericValue
normalizeCssNumericValue(key, value): string | number | undefined | null
Parameters
| Name | Type |
|---|---|
key |
string |
value |
undefined | null | string | number |
Returns
string | number | undefined | null
Defined in
src/core/helpers/normalize/normalize-css-value.ts#19
normalizeCssValue
normalizeCssValue(key, value): string | number
Parameters
| Name | Type |
|---|---|
key |
string |
value |
string | number |
Returns
string | number
Defined in
src/core/helpers/normalize/normalize-css-value.ts#34
normalizeKeyAliases
normalizeKeyAliases(keys): string
Normalize keys to some standard name
Parameters
| Name | Type |
|---|---|
keys |
string |
Returns
string
Defined in
src/core/helpers/normalize/normalize-key-aliases.ts#18
normalizeLicense
normalizeLicense(license, count?): string
Parameters
| Name | Type | Default value |
|---|---|---|
license |
string |
undefined |
count |
number |
8 |
Returns
string
Defined in
src/core/helpers/normalize/normalize-license.ts#11
normalizePath
normalizePath(...path): string
Replaces back slashes and correctly concatenates several parts of the path.
Parameters
| Name | Type |
|---|---|
...path |
string[] |
Returns
string
Defined in
src/core/helpers/normalize/normalize-path.ts#16
normalizeRelativePath
normalizeRelativePath(path): string
Parameters
| Name | Type |
|---|---|
path |
string |
Returns
string
Defined in
src/core/helpers/normalize/normalize-relative-path.ts#11
normalizeSize
normalizeSize(value, units): string
Normalize value to CSS meters
Parameters
| Name | Type |
|---|---|
value |
string | number |
units |
"px" | "pt" |
Returns
string
Defined in
src/core/helpers/normalize/normalize-size.ts#14
normalizeUrl
normalizeUrl(...urls): string
Parameters
| Name | Type |
|---|---|
...urls |
string[] |
Returns
string
Defined in
jodit/src/core/helpers/normalize/normalize-url.ts:11