mirror of
https://github.com/codex-team/editor.js
synced 2026-03-15 23:25:47 +01:00
update editor interface (#293)
This commit is contained in:
parent
3398383644
commit
cbb4746cc9
2 changed files with 5 additions and 2 deletions
|
|
@ -1,6 +1,7 @@
|
|||
import {IBlockTool} from './block-tool';
|
||||
import {IBlockToolConfig} from './block-tool';
|
||||
import ISanitizerConfig from './sanitizer-config';
|
||||
import IInputOutputData from './input-output-data';
|
||||
|
||||
/**
|
||||
* Editor Instance config
|
||||
|
|
@ -15,7 +16,7 @@ export default interface IEditorConfig {
|
|||
/**
|
||||
* Blocks list in JSON-format
|
||||
*/
|
||||
data: IBlockToolConfig[];
|
||||
data: IInputOutputData;
|
||||
|
||||
/**
|
||||
* Map of used Tools
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
import {IBlockToolData} from './block-tool';
|
||||
|
||||
/**
|
||||
* Interface represents input CodeX Editor data
|
||||
* that passed with initial configuration object as 'data' key
|
||||
|
|
@ -7,7 +9,7 @@ export default interface IInputOutputData {
|
|||
/**
|
||||
* Saved Blocks
|
||||
*/
|
||||
readonly items: object[];
|
||||
readonly items: IBlockToolData[];
|
||||
|
||||
/**
|
||||
* Article id. Optional
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue