Skip to main content

Built and signed on GitHub Actions

A microlibrary for building reactive HTML notebooks

This package works with BrowsersIt is unknown whether this package works with Cloudflare Workers, Node.js, Deno, Bun
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Node.js
It is unknown whether this package works with Deno
It is unknown whether this package works with Bun
This package works with Browsers
JSR Score
100%
Published
4 weeks ago (4.8.0)
function registerScriptReevaluationOnBlur
registerScriptReevaluationOnBlur(
document: Document,
className: string,
): void

Sets up automatic reevaluation of editable script elements on blur. When a script element marked with the specified class loses focus, it will be replaced with a new script element containing the updated content.

Parameters

document: Document
  • The document object containing the script elements
className: string
  • The class name of script elements to watch

Return Type

void

Add Package

deno add jsr:@celine/celine

Import symbol

import { registerScriptReevaluationOnBlur } from "@celine/celine";

---- OR ----

Import directly with a jsr specifier

import { registerScriptReevaluationOnBlur } from "jsr:@celine/celine";

Add Package

npx jsr add @celine/celine

Import symbol

import { registerScriptReevaluationOnBlur } from "@celine/celine";

Add Package

yarn dlx jsr add @celine/celine

Import symbol

import { registerScriptReevaluationOnBlur } from "@celine/celine";

Add Package

pnpm dlx jsr add @celine/celine

Import symbol

import { registerScriptReevaluationOnBlur } from "@celine/celine";

Add Package

bunx jsr add @celine/celine

Import symbol

import { registerScriptReevaluationOnBlur } from "@celine/celine";