redactor
This commit is contained in:
10
static/js/edit.js
Normal file
10
static/js/edit.js
Normal file
@@ -0,0 +1,10 @@
|
||||
// edit.js — drobne UX dla edytora
|
||||
(() => {
|
||||
'use strict';
|
||||
const ta = document.getElementById('haproxy_config');
|
||||
if (!ta) return;
|
||||
// Auto-grow (simple)
|
||||
const auto = () => { ta.style.height = 'auto'; ta.style.height = (ta.scrollHeight + 6) + 'px'; };
|
||||
ta.addEventListener('input', auto);
|
||||
auto();
|
||||
})();
|
||||
Reference in New Issue
Block a user