MCPcopy Create free account
hub / github.com/docusealco/docuseal / attrsMark

Function attrsMark

app/javascript/elements/html_editor.js:166–177  ·  view source on GitHub ↗
(name, tag)

Source from the content-addressed store, hash-verified

164 })
165
166 const attrsMark = (name, tag) => Mark.create({
167 name,
168 addAttributes () {
169 return { htmlAttrs: { default: {} } }
170 },
171 parseHTML () {
172 return [{ tag, getAttrs: collectDomAttrs }]
173 },
174 renderHTML ({ mark }) {
175 return [tag, mark.attrs.htmlAttrs, 0]
176 }
177 })
178
179 const SpanMark = Mark.create({
180 name: 'span',

Callers 1

buildExtensionsFunction · 0.85

Calls 1

createMethod · 0.45

Tested by

no test coverage detected