prosemirror-schema-basic
Advanced tools
Comparing version 0.18.0 to 0.19.0
@@ -76,4 +76,3 @@ var ref = require("prosemirror-model"); | ||
text: { | ||
group: "inline", | ||
toDOM: function toDOM(node) { return node.text } | ||
group: "inline" | ||
}, | ||
@@ -112,2 +111,5 @@ | ||
// | ||
// link:: MarkSpec A link. Has `href` and `title` attributes. | ||
// `title` defaults to the empty string. | ||
// | ||
// em:: MarkSpec An emphasis mark. | ||
@@ -117,7 +119,16 @@ // | ||
// | ||
// link:: MarkSpec A link. Has `href` and `title` attributes. | ||
// `title` defaults to the empty string. | ||
// | ||
// code:: MarkSpec Code font mark. | ||
var marks = { | ||
link: { | ||
attrs: { | ||
href: {}, | ||
title: {default: null} | ||
}, | ||
inclusive: false, | ||
parseDOM: [{tag: "a[href]", getAttrs: function getAttrs(dom) { | ||
return {href: dom.getAttribute("href"), title: dom.getAttribute("title")} | ||
}}], | ||
toDOM: function toDOM(node) { return ["a", node.attrs] } | ||
}, | ||
em: { | ||
@@ -139,13 +150,2 @@ parseDOM: [{tag: "i"}, {tag: "em"}, | ||
link: { | ||
attrs: { | ||
href: {}, | ||
title: {default: null} | ||
}, | ||
parseDOM: [{tag: "a[href]", getAttrs: function getAttrs(dom) { | ||
return {href: dom.getAttribute("href"), title: dom.getAttribute("title")} | ||
}}], | ||
toDOM: function toDOM(node) { return ["a", node.attrs] } | ||
}, | ||
code: { | ||
@@ -152,0 +152,0 @@ parseDOM: [{tag: "code"}], |
{ | ||
"name": "prosemirror-schema-basic", | ||
"version": "0.18.0", | ||
"version": "0.19.0", | ||
"description": "Basic schema elements for ProseMirror", | ||
@@ -19,3 +19,3 @@ "main": "dist/schema-basic.js", | ||
"dependencies": { | ||
"prosemirror-model": "^0.18.0" | ||
"prosemirror-model": "^0.19.0" | ||
}, | ||
@@ -22,0 +22,0 @@ "devDependencies": { |
@@ -75,4 +75,3 @@ const {Schema} = require("prosemirror-model") | ||
text: { | ||
group: "inline", | ||
toDOM(node) { return node.text } | ||
group: "inline" | ||
}, | ||
@@ -111,2 +110,5 @@ | ||
// | ||
// link:: MarkSpec A link. Has `href` and `title` attributes. | ||
// `title` defaults to the empty string. | ||
// | ||
// em:: MarkSpec An emphasis mark. | ||
@@ -116,7 +118,16 @@ // | ||
// | ||
// link:: MarkSpec A link. Has `href` and `title` attributes. | ||
// `title` defaults to the empty string. | ||
// | ||
// code:: MarkSpec Code font mark. | ||
const marks = { | ||
link: { | ||
attrs: { | ||
href: {}, | ||
title: {default: null} | ||
}, | ||
inclusive: false, | ||
parseDOM: [{tag: "a[href]", getAttrs(dom) { | ||
return {href: dom.getAttribute("href"), title: dom.getAttribute("title")} | ||
}}], | ||
toDOM(node) { return ["a", node.attrs] } | ||
}, | ||
em: { | ||
@@ -138,13 +149,2 @@ parseDOM: [{tag: "i"}, {tag: "em"}, | ||
link: { | ||
attrs: { | ||
href: {}, | ||
title: {default: null} | ||
}, | ||
parseDOM: [{tag: "a[href]", getAttrs(dom) { | ||
return {href: dom.getAttribute("href"), title: dom.getAttribute("title")} | ||
}}], | ||
toDOM(node) { return ["a", node.attrs] } | ||
}, | ||
code: { | ||
@@ -151,0 +151,0 @@ parseDOM: [{tag: "code"}], |
15622
+ Addedprosemirror-model@0.19.0(transitive)
- Removedprosemirror-model@0.18.0(transitive)
Updatedprosemirror-model@^0.19.0