mirror of
https://github.com/seigler/janus
synced 2025-07-27 01:36:11 +00:00
fix: remove dead code
This commit is contained in:
parent
ead85b1f05
commit
8a850aab22
1 changed files with 0 additions and 26 deletions
|
@ -138,32 +138,6 @@
|
|||
}
|
||||
[markupEl, styleEl, scriptEl].forEach(function (current, index, array) {
|
||||
var syncFormElementsIndex = syncFormElements.indexOf(current), editor;
|
||||
// // add a listener to do indenting
|
||||
// current.addEventListener('keydown', function(event) {
|
||||
// var initialScroll, beforeCursor, inSelection, afterCursor, selectionMin, selectionMax, replacedText;
|
||||
// beforeCursor = current.value.slice(0, selectionMin);
|
||||
// inSelection = current.value.slice(selectionMin, selectionMax);
|
||||
// afterCursor = current.value.slice(selectionMax);
|
||||
// initialScroll = current.scrollTop;
|
||||
// if (event.keyCode === 13) {
|
||||
// // NEWLINE
|
||||
// event.preventDefault();
|
||||
// replacedText = "\n";
|
||||
// document.execCommand("insertText", false, replacedText);
|
||||
// selectionMin += replacedText.length;
|
||||
// selectionMax = selectionMin;
|
||||
// current.scrollTop = initialScroll;
|
||||
// } else if (event.keyCode === 9) {
|
||||
// // TAB
|
||||
// event.preventDefault();
|
||||
// event.stopPropagation();
|
||||
// replacedText = "\t";
|
||||
// document.execCommand("insertText", false, replacedText);
|
||||
// selectionMin += replacedText.length;
|
||||
// selectionMax = selectionMin;
|
||||
// current.scrollTop = initialScroll;
|
||||
// }
|
||||
// });
|
||||
editor = new Behave({
|
||||
textarea: current,
|
||||
replaceTab: true,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue