UNPKG

jodit-pro

Version:

PRO Version of Jodit Editor

2 lines (1 loc) 531 B
var s=Object.defineProperty;var n=(e,r)=>s(e,"name",{value:r,configurable:!0});import{throwIfAborted as a}from"../../core/abort-utils.js";import{requireString as l}from"../../core/arg-utils.js";async function i(e,r,c){const o=l(r,"html",{allowEmpty:!0});a(c);try{return e.s.focus(),e.value=o,e.synchronizeValues(),{success:!0,message:`Document content was replaced with provided HTML(${o.length} characters)`}}catch(t){throw new Error(`Failed to replace HTML: ${t?.message||"Unknown error"}`)}}n(i,"execute");export{i as execute};