jodit-pro
Version:
PRO Version of Jodit Editor
2 lines (1 loc) • 440 B
JavaScript
var e=Object.defineProperty;var a=(t,r)=>e(t,"name",{value:r,configurable:!0});const n=["cellspacing","cellpadding","border","v:shapes","o:spid"];function s(t){if(/^OLE_LINK\d+$/.test(t.attributes.name)&&(t.attributes.name=null,t.length===0))return t.remove(),null;t.attributes.name==="_GoBack"&&(t.attributes.name=null);for(const r of n)t.attributes[r]&&(t.attributes[r]=null);return t}a(s,"clearAttributes");export{s as clearAttributes};