Commit 28574465 authored by chris's avatar chris

fix blocks

parent 46f265b4
......@@ -270,7 +270,16 @@ const extraNodes = {
attrs: {
class: { default: "block-special" }
},
parseDOM: [{ tag: "div" }],
parseDOM: [
{
tag: "div",
getAttrs(dom) {
return {
class: dom.getAttribute("class")
};
}
}
],
toDOM(node) {
return ["div", node.attrs, 0];
}
......@@ -282,7 +291,16 @@ const extraNodes = {
attrs: {
class: { default: "block-important" }
},
parseDOM: [{ tag: "div" }],
parseDOM: [
{
tag: "div",
getAttrs(dom) {
return {
class: dom.getAttribute("class")
};
}
}
],
toDOM(node) {
return ["div", node.attrs, 0];
}
......@@ -294,7 +312,16 @@ const extraNodes = {
attrs: {
class: { default: "block-recommended" }
},
parseDOM: [{ tag: "div" }],
parseDOM: [
{
tag: "div",
getAttrs(dom) {
return {
class: dom.getAttribute("class")
};
}
}
],
toDOM(node) {
return ["div", node.attrs, 0];
}
......@@ -306,7 +333,16 @@ const extraNodes = {
attrs: {
class: { default: "block-caution" }
},
parseDOM: [{ tag: "div" }],
parseDOM: [
{
tag: "div",
getAttrs(dom) {
return {
class: dom.getAttribute("class")
};
}
}
],
toDOM(node) {
return ["div", node.attrs, 0];
}
......@@ -318,7 +354,16 @@ const extraNodes = {
attrs: {
class: { default: "block-tip" }
},
parseDOM: [{ tag: "div" }],
parseDOM: [
{
tag: "div",
getAttrs(dom) {
return {
class: dom.getAttribute("class")
};
}
}
],
toDOM(node) {
return ["div", node.attrs, 0];
}
......
......@@ -4,7 +4,6 @@
left: 0;
width: 100%;
height: 100%;
overflow: hidden;
}
.main-editor {
......
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