|
|
|
@ -7830,9 +7830,10 @@ function (_EventEmitter) {
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
_this.refresh();
|
|
|
|
|
_this.refresh(); //window.scroll(0,0);
|
|
|
|
|
//document.execCommand('insertBrOnReturn', false, true);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
window.scroll(0, 0);
|
|
|
|
|
return _this;
|
|
|
|
|
} //--------------------------
|
|
|
|
|
// methods
|
|
|
|
@ -7854,16 +7855,7 @@ function (_EventEmitter) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.textEditor.addEventListener('input', function (f) {
|
|
|
|
|
if (f.inputType == "insertParagraph") {
|
|
|
|
|
var caret = (0, _caretPos.position)(self.textEditor).pos + 1;
|
|
|
|
|
var spiffed = hljs.highlight('markdown', self.textEditor.innerText).value;
|
|
|
|
|
var temp = document.createElement("div");
|
|
|
|
|
temp.innerText = spiffed;
|
|
|
|
|
self.textEditor.innerHTML = temp.innerText;
|
|
|
|
|
(0, _caretPos.position)(self.textEditor, caret);
|
|
|
|
|
} else {
|
|
|
|
|
self.refresh();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}, {
|
|
|
|
@ -9075,7 +9067,7 @@ var parent = module.bundle.parent;
|
|
|
|
|
if ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') {
|
|
|
|
|
var hostname = "" || location.hostname;
|
|
|
|
|
var protocol = location.protocol === 'https:' ? 'wss' : 'ws';
|
|
|
|
|
var ws = new WebSocket(protocol + '://' + hostname + ':' + "49367" + '/');
|
|
|
|
|
var ws = new WebSocket(protocol + '://' + hostname + ':' + "61094" + '/');
|
|
|
|
|
|
|
|
|
|
ws.onmessage = function (event) {
|
|
|
|
|
var data = JSON.parse(event.data);
|
|
|
|
|