Show placeholder inside empty editor




    beforeDestruct: "beforeDestruct";
    beforeInit: "beforeInit";
    destructed: "destructed";
    ready: "ready";

Type declaration

  • Readonly beforeDestruct: "beforeDestruct"
  • Readonly beforeInit: "beforeInit"
  • Readonly destructed: "destructed"
  • Readonly ready: "ready"
async: IAsync = ...
buttons: undefined | IPluginButton[] = []
hasStyle: boolean = false

Plugin have CSS style and it should be loaded

jodit: IJodit

Parent View element

ownerWindow: Window = window

The window in which jodit was created

requires: string[] = []
styles: CanUndef<string>

Additional plugin styles can be written simply as inline styles

class A extends Jodit.modules.Plugin {
styles = 'h1{color: red}';

Will only be applied if the plugin is activated

uid: string


  • get componentName(): string
  • Returns string

  • get componentStatus(): ComponentStatus
  • Current component status

    Returns ComponentStatus

  • set componentStatus(componentStatus): void
  • Setter for current component status


    Returns void

  • get defaultTimeout(): number
  • Returns number

  • get isDestructed(): boolean
  • Component was destructed

    Returns boolean

  • get isInDestruct(): boolean
  • The component is currently undergoing destructuring or has already been destroyed. Those. you should not hang new events on him now or do anything else with him.

    Returns boolean

  • get isReady(): boolean
  • Component is ready for work

    Returns boolean

  • get j(): T
  • Shortcut for this.jodit

    Returns T

  • get ownerDocument(): Document
  • The document in which jodit was created

    Returns Document


  • Returns string

  • Returns void

  • Safe get any field

    Type Parameters

    • T


    • chain: string

      the path to be traversed in the obj object

    • Optional obj: IDictionary

      the object in which the value is searched

    Returns Nullable<T>


    private a = {
    b: {
    c: {
    e: {
    g: {
    color: 'red'

    this.get('a.b.c.e.g.color'); // Safe access to color
    // instead using optionsl chaining
  • Calc BEM element class name


    • elementName: string

      element name in the bem classification

    Returns string

  • Parameters

    • elementName: string
    • mod: string

    Returns string

  • Parameters

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

    Returns string

  • Adds a handler for changing the component's status


    • status: ComponentStatus

      the status at which the callback is triggered

    • callback: ((component) => void)

      a function that will be called when the status is status

        • (component): void
        • Parameters

          Returns void

    Returns void

  • Parameters

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

    Returns string

  • Parameters

    Returns void

  • Set component status


    Returns void



Jodit PRO

If you like Jodit - try Jodit PRO