Commit f84f206f authored by chris's avatar chris

xpub files

parent 28307f81
import React, { Component } from "react";
import { Wax, CreateSchema } from "wax-prosemirror-core";
import { DefaultSchema } from "wax-prosemirror-schema";
import { XpubSchema } from "wax-prosemirror-schema";
import "wax-prosemirror-layouts/layouts/default-layout.css";
import "wax-prosemirror-themes/themes/default-theme.css";
const plugins = [];
const keys = {};
const options = {
schema: new CreateSchema(DefaultSchema)
schema: new CreateSchema(XpubSchema)
};
class Xpub extends Component {
......@@ -17,9 +14,9 @@ class Xpub extends Component {
<Wax
options={options}
autoFocus
placeholder="Type Something..."
theme="default"
layout="default"
value="<p>this is a par</p> <h1>this is a heading</h1><ul><li> one list</li></ul>"
/>
);
}
......
export { default as DefaultSchema } from "./src/DefaultSchema";
export { default as EditoriaSchema } from "./src/EditoriaSchema";
export { default as XpubSchema } from "./src/XpubSchema";
......@@ -8,6 +8,9 @@
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"dependencies": {},
"dependencies": {
"prosemirror-schema-list": "^1.0.0",
"prosemirror-tables": "^0.7.10"
},
"devDependencies": {}
}
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