PageSourceSearch

https://www.wolvesoftherockies.org/wp-content/plugins/editor-block…/lock-block-outline.js?ver=1771951165

js wolvesoftherockies.org collected 2026-10-07 18:33:43 UTC 833 bytes, 35 lines download raw bytes

1function lockBlockOutlineOption(props) {
2	const { ToggleControl } = this.components;
3
4	let currentValue = props.metaValue;
5	const outlineLockValue = props.outlineLockState;
6
7	if (currentValue === undefined) {
8		currentValue = true;
9	}
10
11	// if state value is set then use it. This will disable UI flickering
12	if (outlineLockValue !== undefined && outlineLockValue !== '') {
13		currentValue = outlineLockValue;
14	}
15
16	return this.el(ToggleControl, {
17		label: 'Lock outline when hovering away',
18		checked: currentValue,
19		onChange: (value) => {
20			// update state to update control ui
21			props.setState({
22				outlineLockState: value,
23			});
24
25			// Update Editor UI
26			const body = getDocumentBody();
27			body.attr('lock-block-outline', value);
28
29			// update meta
30			this.debounce(() => {
31				props.setMetaValue(value);
32			})();
33		},
34	});
35}

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.