MCPcopy Create free account
hub / github.com/codecombat/codecombat / editContent

Method editContent

app/core/treema-ext.js:193–201  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

191 }
192
193 editContent () {
194 const saveChangesCallback = data => {
195 this.data = data
196 this.saveChanges()
197 this.flushChanges()
198 return this.refreshDisplay()
199 }
200 return this.settings.callbacks.showRichTextModal(this.data, saveChangesCallback)
201 }
202
203 buildValueForDisplay (valEl, data) { return this.initPreview(valEl, data) }
204 buildValueForEditing (valEl, data) { return this.initPreview(valEl, data) }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected