UNPKG

jodit-pro

Version:

PRO Version of Jodit Editor

2 lines (1 loc) 452 B
var n=Object.defineProperty;var e=(t,r)=>n(t,"name",{value:r,configurable:!0});const b=e((t,r)=>{var i;const s=(i=r.links)!==null&&i!==void 0?i:{};if(t.attributes.href&&t.attributes.href.match(/#.+$/)){const a=t.attributes.href.match(/#(.+)$/)[1];s[a]=t}if(t.attributes.name&&s[t.attributes.name]){const a=s[t.attributes.name];a.attributes.href=a.attributes.href.replace(/.*#(.*)$/,"#$1")}return r.links=s,t},"processLinks");export{b as processLinks};