1
0
Fork 0
mirror of https://github.com/codex-team/codex.docs.git synced 2025-07-20 21:59:41 +02:00

Page showing, page edit, move API to /api/ (#10)

This commit is contained in:
Peter Savchenko 2018-10-15 22:06:01 +03:00 committed by GitHub
parent ff09f695d0
commit 730eff7995
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 316 additions and 133 deletions

View file

@ -7,8 +7,9 @@ import Header from 'codex.editor.header';
export default class Editor {
/**
* Creates Editor instance
* @property {object} initialData - data to start with
*/
constructor() {
constructor({initialData}) {
this.editor = new CodeXEditor({
tools: {
header: {
@ -18,7 +19,7 @@ export default class Editor {
}
}
},
data: {
data: initialData || {
blocks: [
{
type: 'header',