• Live demo
  • Docs
  • API Reference
GitHub
@mdxeditor/editor package
Classes
GenericHTMLNode
ImageNode
constructor
Properties
__altText
__height
__src
__title
__width
Methods
clone()
createDOM()
decorate()
exportDOM()
exportJSON()
getAltText()
getHeight()
getSrc()
getTitle()
getType()
getWidth()
hasExplicitDimensions()
importDOM()
importJSON()
setAltText()
setSrc()
setTitle()
setWidthAndHeight()
updateDOM()
MarkdownParseError
UnrecognizedMarkdownConstructError
Functions
Types
Interfaces
Variables

ImageNode class

A lexical node that represents an image. Use $createImageNode() to construct one.

Signature:

export declare class ImageNode extends DecoratorNode<JSX.Element> 

Extends: DecoratorNode<JSX.Element>

Constructors

ConstructorModifiersDescription
(constructor)(src, altText, title, width, height, key)Constructs a new instance of the ImageNode class

Properties

PropertyModifiersTypeDescription
__altTextstring
__height'inherit' | number
__srcstring
__titlestring | undefined
__width'inherit' | number

Methods

MethodModifiersDescription
clone(node)static
createDOM(config)
decorate(_parentEditor)
exportDOM()
exportJSON()
getAltText()
getHeight()
getSrc()
getTitle()
getType()static
getWidth()
hasExplicitDimensions()
importDOM()static
importJSON(serializedNode)static
setAltText(altText)
setSrc(src)
setTitle(title)
setWidthAndHeight(width, height)
updateDOM()
  • ImageNode class

    • Constructors
    • Properties
    • Methods
Copyright © 2023 Petyo Ivanov
  • GitHub
  • Twitter
  • LinkedIn
  • Email