Skip to content

ImageNode

reference
1 min readUpdated

Kind: Class

Source: atloria-monorepo/packages/editor/src/plugins/image/ImageNode.tsx

Extends: DecoratorNode

Methods

MethodSignatureReturns
getTypegetType()string
cloneclone(node: ImageNode)ImageNode
importJSONimportJSON(serializedNode: SerializedImageNode)ImageNode
exportDOMexportDOM()DOMExportOutput
importDOMimportDOM()`DOMConversionMap
exportJSONexportJSON()SerializedImageNode
setWidthAndHeight`setWidthAndHeight(width: 'inherit'number, height: 'inherit'
createDOMcreateDOM(config: EditorConfig)HTMLElement
updateDOMupdateDOM()false
getSrcgetSrc()string
getAltTextgetAltText()string
getTitlegetTitle()`string
getHeightgetHeight()`'inherit'
getWidthgetWidth()`'inherit'
getRestgetRest()`(MdxJsxAttribute
setTitle`setTitle(title: stringundefined)`
setSrcsetSrc(src: string)void
setAltText`setAltText(altText: stringundefined)`
shouldBeSerializedAsElementshouldBeSerializedAsElement()boolean
decoratedecorate(_parentEditor: LexicalEditor)JSX.Element

Properties

PropertyType
__srcstring
__altTextstring
__title`string
__width`'inherit'
__height`'inherit'
__rest`(MdxJsxAttribute

Was this page helpful?

Download as PDF