From 63ed8e85e28495bd4f4e661dfd9230008dd40091 Mon Sep 17 00:00:00 2001 From: relhamdi Date: Thu, 21 May 2026 13:53:09 +0200 Subject: [PATCH] Fix createEditor function definition using destructuration --- web/utils.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web/utils.js b/web/utils.js index daafeda..61170a1 100644 --- a/web/utils.js +++ b/web/utils.js @@ -172,7 +172,10 @@ export const adjustWeight = (text, delta) => { return text.replace(trimmed, `(${trimmed}:${weight.toFixed(1)})`); }; -export const createEditor = (textarea, activeColor = "#e0e0e0", onInput) => { +export const createEditor = ( + textarea, + { activeColor = "#e0e0e0", onInput } = {}, +) => { // Hide native textarea textarea.style.display = "none";