MCPcopy Create free account
hub / github.com/TruthHun/BookStack / annotationTooltip

Function annotationTooltip

static/editor.md/lib/codemirror/addon/lint/lint.js:111–118  ·  view source on GitHub ↗
(ann)

Source from the content-addressed store, hash-verified

109 }
110
111 function annotationTooltip(ann) {
112 var severity = ann.severity;
113 if (!severity) severity = "error";
114 var tip = document.createElement("div");
115 tip.className = "CodeMirror-lint-message-" + severity;
116 tip.appendChild(document.createTextNode(ann.message));
117 return tip;
118 }
119
120 function startLinting(cm) {
121 var state = cm.state.lint, options = state.options;

Callers 2

updateLintingFunction · 0.85
popupSpanTooltipFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected