PageSourceSearch

https://svh3.com/assets/controllers/set_field_value_controller-9d4…edf1acf0bdce69eb2b2694418e706422b7f6cc31.js

js svh3.com collected 2026-09-27 08:39:44 UTC 408 bytes, 16 lines download raw bytes

1import {Controller} from "@hotwired/stimulus"
2
3export default class extends Controller {
4    set(event) {
5	event.preventDefault()
6	const id = event.currentTarget.dataset.target
7	const value = event.currentTarget.dataset.value
8	const editor = tinymce.get(id)
9	if (editor) {
10	    editor.setContent(value)
11	} else {
12	    const field = document.getElementById(id)
13	    if (field) field.value = value
14	}
15    }
16};

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.