This repository has been archived by the owner on Nov 4, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update slate api schema object #50
- Loading branch information
1 parent
8569b19
commit 6e39582
Showing
7 changed files
with
43 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 3 additions & 6 deletions
9
src/package/plugins/slate-alignment-plugin/AlignmentSchema.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,7 @@ | ||
import AlignmentNode from './AlignmentNode' | ||
|
||
|
||
const AlignmentSchema = { | ||
nodes: { | ||
alignment: AlignmentNode, | ||
}, | ||
document: { | ||
nodes: [{ types: ['alignment'] }] | ||
} | ||
} | ||
|
||
export default AlignmentSchema |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,7 @@ | ||
import EmbedNode from './EmbedNode' | ||
|
||
|
||
const EmbedSchema = { | ||
nodes: { | ||
embed: EmbedNode, | ||
}, | ||
document: { | ||
nodes: [{ types: ['embed'] }] | ||
} | ||
} | ||
|
||
export default EmbedSchema |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,7 @@ | ||
import GridNode from './GridNode' | ||
import GridRowNode from './GridRowNode' | ||
import GridCellNode from './GridCellNode' | ||
|
||
|
||
const GridSchema = { | ||
nodes: { | ||
'grid': GridNode, | ||
'grid-row': GridRowNode, | ||
'grid-cell': GridCellNode, | ||
}, | ||
document: { | ||
nodes: [{ types: ['grid', 'grid-row', 'grid-cell'] }] | ||
} | ||
} | ||
|
||
export default GridSchema |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,7 @@ | ||
import ImageNode from './ImageNode' | ||
import ImageLinkNode from './ImageLinkNode' | ||
|
||
|
||
const ImageSchema = { | ||
nodes: { | ||
image: ImageNode, | ||
imageLink: ImageLinkNode, | ||
}, | ||
document: { | ||
nodes: [{ types: ['image', 'imageLink'] }] | ||
} | ||
} | ||
|
||
export default ImageSchema |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,6 @@ | ||
import LinkNode from './LinkNode' | ||
|
||
|
||
const LinkSchema = { | ||
nodes: { | ||
link: LinkNode, | ||
}, | ||
document: { | ||
nodes: [{ types: ['link'] }] | ||
} | ||
} | ||
export default LinkSchema |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,7 @@ | ||
import UnorderedListNode from './UnorderedListNode' | ||
import OrderedListNode from './OrderedListNode' | ||
import ListItemNode from './ListItemNode' | ||
|
||
const ListSchema = { | ||
nodes: { | ||
'unordered-list': UnorderedListNode, | ||
'list-item': ListItemNode, | ||
'ordered-list': OrderedListNode, | ||
}, | ||
document: { | ||
nodes: [{ types: ['unordered-list', 'list-item', 'ordered-list'] }] | ||
} | ||
} | ||
|
||
export default ListSchema |