Hierarchy

Implemented by

Properties

OPTIONS: IViewOptions
async: IAsync
basePath: string
componentName: string
componentStatus: ComponentStatus
container: HTMLElement
create: ICreate
createInside: ICreate
currentPlace: IWorkPlace
defaultTimeout: number

Alias for this.ed

editor: HTMLElement
editorDocument: HTMLDocument
editorIsActive: boolean
editorWindow: Window
element: HTMLElement
ew: Window

Alias for this.ed

history: IHistory
id: string

ID attribute for source element, id add {id}_editor it's editor's id

iframe?: void | HTMLIFrameElement
isDestructed: boolean
isFocused: boolean
isFullSize: boolean
isInDestruct: boolean
isJodit: true
isLocked: boolean
isReady: boolean
isView: true
message: IMessages
mode: Modes
options: Config
ow: Window
ownerDocument: Document
ownerWindow: Window
places: IWorkPlace[]
progressbar: IProgressBar
registeredButtons: Set<IPluginButton>

Alias for this.selection

selection: ISelect
statusbar: IStatusBar
text: string
toolbarContainer: HTMLElement
uid: string
uploader: IUploader
value: string
workplace: HTMLDivElement

workplace It contains source and wysiwyg editors

Methods

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    • msg: string | HTMLElement
    • Optional title: string | (() => false | void)
    • Optional callback: string | ((dialog) => false | void)
    • Optional className: string

    Returns IDialog

  • Returns string

  • Parameters

    • msg: string
    • title: undefined | string | ((yes) => void)
    • Optional callback: ((yes) => false | void)
        • (yes): false | void
        • Parameters

          • yes: boolean

          Returns false | void

    Returns IDialog

  • Parameters

    • command: string
    • Optional showUI: any
    • Optional value: any
    • Rest ...args: unknown[]

    Returns any

  • Returns void

  • Type Parameters

    • T

    Parameters

    Returns Nullable<T>

  • Parameters

    • Optional removeSelectionMarkers: boolean
    • Optional consumer: string

    Returns string

  • Only getter

    Returns string

  • Parameters

    • elementName: string

    Returns string

  • Parameters

    • elementName: string
    • mod: string

    Returns string

  • Parameters

    • elementName: string
    • Optional mod: string
    • Optional modValue: string | boolean

    Returns string

  • Type Parameters

    Parameters

    • moduleName: string
    • Optional options: object

    Returns T

  • Returns string

  • Returns boolean

  • Return current real work mode. When editor in MODE_SOURCE or MODE_WYSIWYG it will return them, but then editor in MODE_SPLIT it will return MODE_SOURCE if Textarea(CodeMirror) focused or MODE_WYSIWYG otherwise

    Returns Modes

    Example

    var editor = Jodit.make('#editor');
    console.log(editor.getRealMode());
  • Returns string

  • Parameters

    • status: ComponentStatus
    • callback: ((component) => void)
        • (component): void
        • Parameters

          Returns void

    Returns void

  • Parameters

    • text: string
    • Rest ...params: (string | number)[]

    Returns string

  • Returns boolean

  • Parameters

    • name: string

    Returns boolean

  • Parameters

    • Optional name: string

    Returns boolean

  • Parameters

    • command: string
    • Optional showUI: any
    • Optional value: any

    Returns boolean

  • Parameters

    • msg: string
    • title: undefined | string | (() => false | void)
    • callback: ((value) => false | void)
        • (value): false | void
        • Parameters

          • value: string

          Returns false | void

    • Optional placeholder: string
    • Optional defaultValue: string

    Returns IDialog

  • Type Parameters

    • C extends string

    Parameters

    • commandNameOriginal: C
    • command: CustomCommand<IJodit, C>
    • Optional options: {
          stopPropagation: boolean;
      }
      • stopPropagation: boolean

    Returns IJodit

  • Parameters

    • hotkeys: string | string[]
    • commandName: string
    • Optional shouldStop: boolean

    Returns void

  • Parameters

    Returns void

  • Parameters

    • Optional value: string

    Returns void

  • Parameters

    Returns void

  • Parameters

    • enable: boolean

    Returns void

  • Parameters

    Returns void

  • Parameters

    • Optional isFullSize: boolean

    Returns void

  • Returns void

  • Returns boolean

Jodit PRO

If you like Jodit - try Jodit PRO