Commit b6237f21 authored by chris's avatar chris

rest of classes in schema

parent febbbb4a
......@@ -94,9 +94,10 @@ export default {
title: "Change to heading level 1",
content: "Heading 1",
enable: state => {
return setBlockType(state.config.schema.nodes.heading, { level: 1 })(
state
);
return setBlockType(state.config.schema.nodes.heading, {
level: 1,
track: []
})(state);
},
run(state, dispatch) {
setBlockType(state.config.schema.nodes.heading, { level: 1 })(
......@@ -111,9 +112,10 @@ export default {
title: "Change to heading level 2",
content: "Heading 2",
enable: state => {
return setBlockType(state.config.schema.nodes.heading, { level: 2 })(
state
);
return setBlockType(state.config.schema.nodes.heading, {
level: 2,
track: []
})(state);
},
run(state, dispatch) {
setBlockType(state.config.schema.nodes.heading, { level: 2 })(
......@@ -128,9 +130,10 @@ export default {
title: "Change to heading level 3",
content: "Heading 3",
enable: state => {
return setBlockType(state.config.schema.nodes.heading, { level: 3 })(
state
);
return setBlockType(state.config.schema.nodes.heading, {
level: 3,
track: []
})(state);
},
run(state, dispatch) {
setBlockType(state.config.schema.nodes.heading, { level: 3 })(
......
......@@ -160,7 +160,7 @@ const EditoriaSchema = {
},
parseDOM: [
{
tag: "p",
tag: "p.epigraph-prose",
getAttrs(dom) {
return {
class: dom.getAttribute("class"),
......@@ -185,7 +185,7 @@ const EditoriaSchema = {
},
parseDOM: [
{
tag: "p",
tag: "p.epigraph-poetry",
getAttrs(dom) {
return {
class: dom.getAttribute("class"),
......@@ -210,7 +210,7 @@ const EditoriaSchema = {
},
parseDOM: [
{
tag: "p",
tag: "p.source-note",
getAttrs(dom) {
return {
class: dom.getAttribute("class"),
......@@ -235,7 +235,7 @@ const EditoriaSchema = {
},
parseDOM: [
{
tag: "p",
tag: "p.paragraph-cont",
getAttrs(dom) {
return {
class: dom.getAttribute("class"),
......@@ -260,7 +260,7 @@ const EditoriaSchema = {
},
parseDOM: [
{
tag: "p",
tag: "p.extract-prose",
getAttrs(dom) {
return {
class: dom.getAttribute("class"),
......@@ -285,7 +285,7 @@ const EditoriaSchema = {
},
parseDOM: [
{
tag: "p",
tag: "p.extract-poetry",
getAttrs(dom) {
return {
class: dom.getAttribute("class"),
......@@ -310,7 +310,7 @@ const EditoriaSchema = {
},
parseDOM: [
{
tag: "p",
tag: "p.title",
getAttrs(dom) {
return {
class: dom.getAttribute("class"),
......@@ -335,7 +335,7 @@ const EditoriaSchema = {
},
parseDOM: [
{
tag: "p",
tag: "p.cst",
getAttrs(dom) {
return {
class: dom.getAttribute("class"),
......
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