UNPKG

jodit-pro

Version:

PRO Version of Jodit Editor

2 lines (1 loc) 968 B
var c=Object.defineProperty;var i=(a,t)=>c(a,"name",{value:t,configurable:!0});import{APP_VERSION as f,IS_PROD as e,IS_TEST as s}from"jodit/esm/core/constants.js";import{appendScriptAsync as h}from"jodit/esm/core/helpers/utils/append-script.js";import{css as m}from"jodit/esm/core/helpers/utils/css.js";import{Jodit as p}from"jodit/esm/index.js";import"./config.js";const r=class r extends p{static make(t,o){return new this(t,o)}beforeInitHook(){if(e&&!s&&this.o.loadExternalConfig)return h(this,this.basePath+"config.js")}afterInitHook(){(async()=>{if(await this.e.fire("checkReserve",location.host)!=="normal"){if(this.isInDestruct)return;const t='Trial version. Buy <a href="https://xdsoft.net/jodit/pro/">Jodit Pro</a>',o=this.c.div("",t);!s&&e&&console.error(t),m(o,{position:"absolute",color:"red",right:10,bottom:10}),this.addDisclaimer(o)}})().catch(()=>null),super.afterInitHook()}getVersion(){return"PRO "+f}};i(r,"JoditPro");let n=r;export{n as JoditPro};