mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 04:46:40 +07:00
displaying text
This commit is contained in:
parent
57f90ee46b
commit
54ce8db210
8 changed files with 51 additions and 22 deletions
|
@ -1,9 +1,9 @@
|
|||
import { FC } from 'react';
|
||||
import { IBlock, INode, ValueOf, IComment } from '../types';
|
||||
import { INode, ValueOf, IComment } from '../types';
|
||||
import { NodeImageSlideBlock } from '~/components/node/NodeImageSlideBlock';
|
||||
import { NodeTextBlock } from '~/components/node/NodeTextBlock';
|
||||
import { ImageEditor } from '~/components/editors/ImageEditor';
|
||||
import { TextEditor } from '~/components/editors/TextEditor';
|
||||
import { DIALOGS } from '../modal/constants';
|
||||
|
||||
const prefix = 'NODE.';
|
||||
export const NODE_ACTIONS = {
|
||||
|
@ -66,6 +66,10 @@ export const NODE_COMPONENTS: INodeComponents = {
|
|||
[NODE_TYPES.IMAGE]: NodeImageSlideBlock,
|
||||
};
|
||||
|
||||
export const NODE_INLINES: INodeComponents = {
|
||||
[NODE_TYPES.TEXT]: NodeTextBlock,
|
||||
};
|
||||
|
||||
export const EMPTY_COMMENT: IComment = {
|
||||
id: null,
|
||||
text: '',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue