mirror of
https://github.com/facebook/lexical.git
synced 2025-08-06 16:39:33 +08:00
Refactor: exportJSON (#6983)
This commit is contained in:
@ -42,13 +42,6 @@ export class OverflowNode extends ElementNode {
|
||||
this.__type = 'overflow';
|
||||
}
|
||||
|
||||
exportJSON(): SerializedElementNode {
|
||||
return {
|
||||
...super.exportJSON(),
|
||||
type: 'overflow',
|
||||
};
|
||||
}
|
||||
|
||||
createDOM(config: EditorConfig): HTMLElement {
|
||||
const div = document.createElement('span');
|
||||
const className = config.theme.characterLimit;
|
||||
|
Reference in New Issue
Block a user