From 07d94f9485b5c51dcb9e087f6eeb27bc0d4a9113 Mon Sep 17 00:00:00 2001 From: Viktor Date: Thu, 16 May 2024 18:01:12 +0200 Subject: [PATCH] Inert attribute usage To prevent search --- lib/TextareaDecorator.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/TextareaDecorator.js b/lib/TextareaDecorator.js index 90777ca..199fa28 100644 --- a/lib/TextareaDecorator.js +++ b/lib/TextareaDecorator.js @@ -11,6 +11,7 @@ function TextareaDecorator( textarea, parser ){ // construct editor DOM var parent = document.createElement("div"); var output = document.createElement("pre"); + output.inert = true; // prevents Ctrl+F search parent.appendChild(output); var label = document.createElement("label"); parent.appendChild(label);