Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.132/page_editor/app/processors/TextProcessor",["module","exports","require","../utils/getEditableLinkValue","../utils/isNullOrUndefined","./getAlloyEditorProcessor","./getLinkableEditableEditorWrapper"],(function(e,t,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r("../utils/getEditableLinkValue"),l=n(r("../utils/isNullOrUndefined")),a=n(r("./getAlloyEditorProcessor")),o=r("./getLinkableEditableEditorWrapper");function n(e){return e&&e.__esModule?e:{default:e}}var d=(0,a.default)("text",o.getLinkableEditableEditorWrapper,((e,t,r={},a)=>{const o=(0,i.getEditableLinkValue)(r,a);if(o.href){let r=e instanceof HTMLAnchorElement?e:e.querySelector("a");r||(r=document.createElement("a")),r.href=o.href,r.target=o.target||"",r.innerHTML=t,e.contains(r)||(e.innerHTML=r.outerHTML)}else(0,l.default)(t)||(e.innerHTML=t)}));t.default=d}}));
//# sourceMappingURL=TextProcessor.js.map