UNPKG

@syncfusion/ej2-react-documenteditor

Version:

Feature-rich document editor control with built-in support for context menu, options pane and dialogs. for React

10 lines 3.77 kB
/*! * filename: ej2-react-documenteditor.min.js * version : 33.1.46 * Copyright Syncfusion Inc. 2001 - 2025. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing * licensing@syncfusion.com. Any infringement will be prosecuted under * applicable laws. */ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("React"),require("SyncfusionDocumenteditor"),require("SyncfusionReactBase")):"function"==typeof define&&define.amd?define(["React","SyncfusionDocumenteditor","SyncfusionReactBase"],t):"object"==typeof exports?exports.SyncfusionReactDocumenteditor=t(require("React"),require("SyncfusionDocumenteditor"),require("SyncfusionReactBase")):e.SyncfusionReactDocumenteditor=t(e.React,e.SyncfusionDocumenteditor,e.SyncfusionReactBase)}(self,(e,t,o)=>(()=>{"use strict";var n={161:(e,t,o)=>{o.d(t,{G:()=>a});var n,r=o(24),i=o(851),c=o(705),s=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),a=function(e){function t(t){var o=e.call(this,t)||this;return o.initRenderCalled=!1,o.checkInjectedModules=!0,o.statelessTemplateProps=null,o.templateProps=null,o.immediateRender=!0,o.isReactMock=!0,o.portals=[],o}return s(t,e),t.prototype.render=function(){if(this.isReactMock=!1,!(this.element&&!this.initRenderCalled||this.refreshing)||this.isReactForeceUpdate)return r.createElement("div",this.getDefaultAttributes(),[].concat(this.props.children,this.portals));e.prototype.render.call(this),this.initRenderCalled=!0},t}(i.DocumentEditorContainer);(0,c.applyMixins)(a,[c.ComponentBase,r.Component])},257:(e,t,o)=>{o.d(t,{u:()=>a});var n,r=o(24),i=o(851),c=o(705),s=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),a=function(e){function t(t){var o=e.call(this,t)||this;return o.initRenderCalled=!1,o.checkInjectedModules=!0,o.statelessTemplateProps=null,o.templateProps=null,o.immediateRender=!0,o.isReactMock=!0,o.portals=[],o}return s(t,e),t.prototype.render=function(){if(this.isReactMock=!1,!(this.element&&!this.initRenderCalled||this.refreshing)||this.isReactForeceUpdate)return r.createElement("div",this.getDefaultAttributes(),[].concat(this.props.children,this.portals));e.prototype.render.call(this),this.initRenderCalled=!0},t}(i.DocumentEditor);(0,c.applyMixins)(a,[c.ComponentBase,r.Component])},24:t=>{t.exports=e},851:e=>{e.exports=t},705:e=>{e.exports=o}},r={};function i(e){var t=r[e];if(void 0!==t)return t.exports;var o=r[e]={exports:{}};return n[e](o,o.exports,i),o.exports}i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var o in t)i.o(t,o)&&!i.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var c={};return(()=>{i.r(c),i.d(c,{DocumentEditorComponent:()=>e.u,DocumentEditorContainerComponent:()=>t.G,Inject:()=>o.Inject});var e=i(257),t=i(161),o=i(705),n=i(851),r={};for(const e in n)["default","Inject","DocumentEditorComponent","DocumentEditorContainerComponent"].indexOf(e)<0&&(r[e]=()=>n[e]);i.d(c,r)})(),c})());