Jodit helpers functions

Assistant functions are intended for small basic operations and are divided into subgroups.

For example, the [[helpers/string]] subgroup is designed to work with strings:

Jodit.modules.Helpers.ucfirst('hello'); // Hello
Jodit.modules.Helpers.camelCase('hello-world'); // helloWorld
Jodit.modules.Helpers.trim(' hello-world '); // hello-world
Jodit.modules.Helpers.kebabCase('helloWorld'); // hello-world

And the [[helpers/html]] subgroup is designed to work with strings containing HTML:

Jodit.modules.Helpers.nl2br('hello\nworld'); // hello<br>world

All helpers, regardless of the group, are in the namespace Jodit.modules.Helpers

The most commonly used helpers are checkers [[helpers/checker]]:

Jodit.modules.Helpers.isBoolean('hello'); // false

Jodit.modules.Helpers.isHtml('hello-world'); // false
Jodit.modules.Helpers.isHtml('<p>hello world</p>'); // true

Jodit.modules.Helpers.isInt('100'); // true
Jodit.modules.Helpers.isInt('100.1'); // false
Jodit.modules.Helpers.isInt('test'); // false

Jodit.modules.Helpers.isFunction(() => {}); // true
Jodit.modules.Helpers.isString(123); // false


Re-exports $$
Re-exports AbortError
Re-exports CallbackAndElement
Re-exports CamelCaseToKebabCase
Re-exports ConfigFlatten
Re-exports ConfigProto
Re-exports ConnectionError
Re-exports LimitedStack
Re-exports Loader
Re-exports OptionsError
Re-exports abort
Re-exports alignElement
Re-exports appendScript
Re-exports appendScriptAsync
Re-exports appendStyleAsync
Re-exports applyStyles
Re-exports asArray
Re-exports assert
Re-exports attr
Re-exports browser
Re-exports buildQuery
Re-exports call
Re-exports callPromise
Re-exports camelCase
Re-exports cleanFromWord
Re-exports clearAlign
Re-exports clearCenterAlign
Re-exports clearTimeout
Re-exports cns
Re-exports colorToHex
Re-exports completeUrl
Re-exports connection
Re-exports convertMediaUrlToVideoEmbed
Re-exports css
Re-exports cssPath
Re-exports ctrlKey
Re-exports dataBind
Re-exports defaultLanguage
Re-exports error
Re-exports fastClone
Re-exports fuzzySearchIndex
Re-exports get
Re-exports getClassName
Re-exports getContentWidth
Re-exports getDataTransfer
Re-exports getScrollParent
Re-exports getXPathByElement
Re-exports hAlignElement
Re-exports hasBrowserColorPicker
Re-exports hasContainer
Re-exports htmlspecialchars
Re-exports humanSizeToBytes
Re-exports i18n
Re-exports inView
Re-exports innerWidth
Re-exports isAbort
Re-exports isArray
Re-exports isAtom
Re-exports isBoolean
Re-exports isDestructable
Re-exports isEqual
Re-exports isFastEqual
Re-exports isFunction
Re-exports isHTML
Re-exports isHtmlFromWord
Re-exports isInitable
Re-exports isInt
Re-exports isJoditObject
Re-exports isLicense
Re-exports isMarker
Re-exports isNativeFunction
Re-exports isNumber
Re-exports isNumeric
Re-exports isPlainObject
Re-exports isPromise
Re-exports isSet
Re-exports isString
Re-exports isStringArray
Re-exports isURL
Re-exports isValidName
Re-exports isViewObject
Re-exports isVoid
Re-exports isWindow
Re-exports kebabCase
Re-exports keepNames
Re-exports keys
Re-exports loadImage
Re-exports loadNext
Re-exports loadNextStyle
Re-exports markAsAtomic
Re-exports markDeprecated
Re-exports markOwner
Re-exports memorizeExec
Re-exports nl2br
Re-exports normalizeColor
Re-exports normalizeCssNumericValue
Re-exports normalizeCssValue
Re-exports normalizeKeyAliases
Re-exports normalizeLicense
Re-exports normalizePath
Re-exports normalizeRelativePath
Re-exports normalizeSize
Re-exports normalizeUrl
Re-exports offset
Re-exports options
Re-exports parseQuery
Re-exports position
Re-exports previewBox
Re-exports refs
Re-exports reset
Re-exports resolveElement
Re-exports safeHTML
Re-exports sanitizeHTMLElement
Re-exports scrollIntoViewIfNeeded
Re-exports set
Re-exports setTimeout
Re-exports size
Re-exports splitArray
Re-exports sprintf
Re-exports stringify
Re-exports stripTags
Re-exports toArray
Re-exports trim
Re-exports trimInv
Re-exports ucfirst
Re-exports val

Jodit PRO

If you like Jodit - try Jodit PRO