MCPcopy
hub / github.com/basecamp/trix / setHTMLAttributeAtPosition

Method setHTMLAttributeAtPosition

src/trix/models/document.js:285–289  ·  view source on GitHub ↗
(position, name, value)

Source from the content-addressed store, hash-verified

283 }
284
285 setHTMLAttributeAtPosition(position, name, value) {
286 const block = this.getBlockAtPosition(position)
287 const updatedBlock = block.addHTMLAttribute(name, value)
288 return this.replaceBlock(block, updatedBlock)
289 }
290
291 insertBlockBreakAtRange(range) {
292 let blocks

Callers 2

trix.jsFile · 0.80

Calls 3

getBlockAtPositionMethod · 0.95
replaceBlockMethod · 0.95
addHTMLAttributeMethod · 0.45

Tested by

no test coverage detected