Commit 1a9bbbcc authored by Christos's avatar Christos

Merge branch 'develop' into 'master'

rename WaxKwys to CreateShortCuts

See merge request !14
parents 3bc2d650 211fe28e
......@@ -17,7 +17,7 @@ import {
goToNextCell
} from "prosemirror-tables";
import { Wax, CreateSchema, WaxKeys } from "wax-prosemirror-core";
import { Wax, CreateSchema, CreateShortCuts } from "wax-prosemirror-core";
import { EditoriaSchema } from "wax-prosemirror-schema";
import { MainMenuBar, SideMenuBar } from "wax-prosemirror-components";
import "wax-prosemirror-layouts/layouts/editoria-layout.css";
......@@ -60,7 +60,7 @@ const shortCuts = {
"Shift-Ctrl-9": wrapInList(schema.nodes.ordered_list)
};
const keys = new WaxKeys({ schema: schema, shortCuts: shortCuts });
const keys = new CreateShortCuts({ schema: schema, shortCuts: shortCuts });
const options = {
schema,
......
export { default as Wax } from "./src/Wax";
export { default as CreateSchema } from "./src/config/classes/CreateSchema";
export { default as WaxKeys } from "./src/config/classes/WaxKeys";
export {
default as CreateShortCuts
} from "./src/config/classes/CreateShortCuts";
......@@ -7,7 +7,7 @@ import Editor from "./Editor";
import defaultPlugins from "./config/defaultPlugins";
import placeholder from "./config/plugins/placeholder";
import WaxKeys from "./config/classes/WaxKeys";
import CreateShortCuts from "./config/classes/CreateShortCuts";
const parser = schema => {
const parser = DOMParser.fromSchema(schema);
......@@ -38,7 +38,7 @@ class Wax extends Component {
const keys =
options && options.keys
? options.keys
: new WaxKeys({ schema: schema, shortCuts: {} });
: new CreateShortCuts({ schema: schema, shortCuts: {} });
const editorContent = value ? value : "";
......
......@@ -15,7 +15,7 @@ import {
selectParentNode
} from "prosemirror-commands";
class WaxKeys {
class CreateShortCuts {
constructor(config) {
this.schema = config.schema;
this.shortCuts = config.shortCuts;
......@@ -84,4 +84,4 @@ class WaxKeys {
}
}
export default WaxKeys;
export default CreateShortCuts;
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