UNPKG

substance

Version:

Substance is a JavaScript library for web-based content editing. It provides building blocks for realizing custom text editors and web-based publishing systems.

19 lines (14 loc) 258 B
export default { type: "link", tagName: 'a', import: function(el, node) { node.url = el.attr('href') node.title = el.attr('title') }, export: function(link, el) { el.attr({ href: link.url, title: link.title }) } }