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

Method addPreviewToggle

app/core/treema-ext.js:129–135  ·  view source on GitHub ↗
(valEl)

Source from the content-addressed store, hash-verified

127 }
128
129 addPreviewToggle (valEl) {
130 return valEl.append($('<div class="toggle-preview-button"></div>').append(
131 $('<button>Toggle Preview</button>')
132 .addClass('btn btn-sm btn-primary')
133 .click(this.togglePreview),
134 ))
135 }
136
137 onFileChosen (InkBlob) {
138 if (!this.settings.filePath) {

Callers 1

initEditorMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected