PageSourceSearch

https://eredaktor.no/_content/ExireNexus.Shared/js/quickEdit.f6ut879y38.js

js eredaktor.no collected 2026-10-09 05:02:45 UTC 707 bytes, 23 lines download raw bytes

1// JS interop helpers for inline "Quick edit" contenteditable fields (Block.Paragraph.razor and friends).
2// contenteditable elements don't support Blazor two-way binding, so we only read their
3// current content explicitly at the point the user clicks Save - never while typing.
4
5export function getInnerText(element) {
6    return element ? element.innerText : '';
7}
8
9export function getInnerHtml(element) {
10    return element ? element.innerHTML : '';
11}
12
13export function setInnerText(element, text) {
14    if (element) {
15        element.innerText = text ?? '';
16    }
17}
18
19export function setInnerHtml(element, html) {
20    if (element) {
21        element.innerHTML = html ?? '';
22    }
23}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.