# CodeBlockNode

**Kind:** Class

**Source:** [`atloria-monorepo/packages/editor/src/plugins/codeblock/CodeBlockNode.tsx`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/packages/editor/src/plugins/codeblock/CodeBlockNode.tsx#L47)

**Extends:** `DecoratorNode`

## Methods

| Method | Signature | Returns |
|---|---|---|
| `getType` | `getType()` | `string` |
| `clone` | `clone(node: CodeBlockNode)` | `CodeBlockNode` |
| `importJSON` | `importJSON(serializedNode: SerializedCodeBlockNode)` | `CodeBlockNode` |
| `importDOM` | `importDOM()` | `DOMConversionMap` |
| `exportJSON` | `exportJSON()` | `SerializedCodeBlockNode` |
| `createDOM` | `createDOM(_config: EditorConfig)` | `HTMLDivElement` |
| `updateDOM` | `updateDOM()` | `false` |
| `getCode` | `getCode()` | `string` |
| `getMeta` | `getMeta()` | `string` |
| `getLanguage` | `getLanguage()` | `string` |
| `decorate` | `decorate(editor: LexicalEditor)` | `JSX.Element` |
| `isInline` | `isInline()` | `boolean` |

## Properties

| Property | Type |
|---|---|
| `__code` | `string` |
| `__meta` | `string` |
| `__language` | `string` |
| `__focusEmitter` | `any` |
| `setCode` | `any` |
| `setMeta` | `any` |
| `setLanguage` | `any` |
| `select` | `any` |
