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

Function divHandler

static/wangEditor/js/wangEditor.js:2263–2271  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2261
2262 var $keydownDivElem;
2263 function divHandler() {
2264 if (!$keydownDivElem) {
2265 return;
2266 }
2267
2268 var $pElem = $('<p>' + $keydownDivElem.html() + '</p>');
2269 $keydownDivElem.after($pElem);
2270 $keydownDivElem.remove();
2271 }
2272
2273 $txt.on('keydown keyup', function (e) {
2274 if (e.keyCode !== 13) {

Callers

nothing calls this directly

Calls 1

$Function · 0.50

Tested by

no test coverage detected