Commit 1c402f08 authored by chris's avatar chris

addd Editoria Schema

parent c97a35b2
import React, { Component } from "react";
import { Wax, createSchema } from "wax-prosemirror-core";
import { defaultSchema } from "wax-prosemirror-schema";
import { Wax, CreateSchema } from "wax-prosemirror-core";
import { DefaultSchema } from "wax-prosemirror-schema";
import "wax-prosemirror-layouts/defaultLayout.css";
import "wax-prosemirror-themes/defaultTheme.css";
......@@ -8,7 +8,7 @@ const plugins = [];
const keys = {};
const options = {
schema: new createSchema(defaultSchema)
schema: new CreateSchema(DefaultSchema)
};
class Default extends Component {
......
import React, { Component } from "react";
import { Wax, createSchema } from "wax-prosemirror-core";
import { defaultSchema } from "wax-prosemirror-schema";
import { Wax, CreateSchema } from "wax-prosemirror-core";
import { DefaultSchema } from "wax-prosemirror-schema";
import { MainMenuBar } from "wax-prosemirror-components";
import "wax-prosemirror-layouts/defaultLayout.css";
import "wax-prosemirror-themes/defaultTheme.css";
......@@ -9,7 +9,7 @@ const plugins = [];
const keys = {};
const options = {
schema: new createSchema(defaultSchema)
schema: new CreateSchema(DefaultSchema)
};
class Editoria extends Component {
......
export { default as Wax } from "./src/Wax";
export { default as createSchema } from "./src/config/classes/createSchema";
export { default as CreateSchema } from "./src/config/classes/CreateSchema";
import { Schema } from "prosemirror-model";
class createSchema {
class CreateSchema {
constructor(schema) {
if (!schema) {
throw new Error("schema is mandatory");
......@@ -30,4 +30,4 @@ class createSchema {
setDefaultSchema() {}
}
export default createSchema;
export default CreateSchema;
export { default as defaultSchema } from "./src/defaultSchema";
export { default as DefaultSchema } from "./src/DefaultSchema";
export { default as EditoriaSchema } from "./src/EditoriaSchema";
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment