PageSourceSearch

https://pika.page/assets/@tiptap--extension-text-style-d2f1f130461…d770c4229c574c8bc056b2ca9448873637436978.js

js pika.page collected 2026-09-25 18:55:34 UTC 688 bytes, 4 lines download raw bytes

1// @tiptap/[email protected] downloaded from https://ga.jspm.io/npm:@tiptap/[email protected]/dist/index.js
2
3import{Mark as t,mergeAttributes as e,getMarkAttributes as r}from"@tiptap/core";const s=t.create({name:"textStyle",priority:101,addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:t=>{const e=t.hasAttribute("style");return!!e&&{}}}]},renderHTML({HTMLAttributes:t}){return["span",e(this.options.HTMLAttributes,t),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:t,commands:e})=>{const s=r(t,this.type);const n=Object.entries(s).some((([,t])=>!!t));return!!n||e.unsetMark(this.name)}}}});export{s as TextStyle,s as default};
4

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.